Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Subtracter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vOut.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008285/0.0008285, allocations: 88.09 kB / 281.2 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.956e-05/1.96e-05, allocations: 8 kB / 337.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08085/0.08088, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2924/0.3734, allocations: 80.16 MB / 467.6 MB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.3736, allocations: 79.95 kB / 467.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01575/0.3894, allocations: 6.13 MB / 473.8 MB, free: 8.465 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3894, allocations: 0 / 473.8 MB, free: 8.465 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.055e-05/0.3894, allocations: 4 kB / 473.8 MB, free: 8.461 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008973/0.3903, allocations: 0.6043 MB / 474.5 MB, free: 7.812 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/0.3904, allocations: 8.031 kB / 474.5 MB, free: 7.805 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.238e-05/0.3905, allocations: 43.53 kB / 474.5 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004265/0.3909, allocations: 308.2 kB / 474.8 MB, free: 7.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.391, allocations: 12 kB / 474.8 MB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.122e-05/0.391, allocations: 20 kB / 474.8 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004031/0.3914, allocations: 237.5 kB / 475.1 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004918/0.3919, allocations: 305.7 kB / 475.4 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3919, allocations: 3.938 kB / 475.4 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.778e-05/0.392, allocations: 0 / 475.4 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.392, allocations: 8 kB / 475.4 MB, free: 6.832 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.3941, allocations: 1.395 MB / 476.8 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.3945, allocations: 178.8 kB / 476.9 MB, free: 5.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000114/0.3946, allocations: 69.42 kB / 477 MB, free: 5.102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.3946, allocations: 11.94 kB / 477 MB, free: 5.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.3947, allocations: 38.56 kB / 477.1 MB, free: 5.043 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 1.392e-06/0.3947, allocations: 0 / 477.1 MB, free: 5.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007127/0.3954, allocations: 252.2 kB / 477.3 MB, free: 4.785 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.345e-05/0.3955, allocations: 63.33 kB / 477.4 MB, free: 4.711 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000246/0.3957, allocations: 230.4 kB / 477.6 MB, free: 4.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.3957, allocations: 25.7 kB / 477.6 MB, free: 4.449 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.3959, allocations: 231.8 kB / 477.8 MB, free: 4.219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.3959, allocations: 51.27 kB / 477.9 MB, free: 4.168 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.05e-05/0.3959, allocations: 4 kB / 477.9 MB, free: 4.164 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3961, allocations: 334.8 kB / 478.2 MB, free: 3.828 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.574e-05/0.3962, allocations: 56 kB / 478.3 MB, free: 3.773 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.3964, allocations: 129.4 kB / 478.4 MB, free: 3.613 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.3965, allocations: 70.05 kB / 478.5 MB, free: 3.547 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3965, allocations: 0 / 478.5 MB, free: 3.547 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006965/0.3972, allocations: 350.9 kB / 478.8 MB, free: 3.191 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3972, allocations: 4 kB / 478.8 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3972, allocations: 4 kB / 478.8 MB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002934/0.3975, allocations: 82.88 kB / 478.9 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001773/0.3977, allocations: 47.94 kB / 479 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/0.4002, allocations: 2.926 MB / 481.9 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.4005, allocations: 31.92 kB / 481.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.4005, allocations: 16.06 kB / 481.9 MB, free: 15.84 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: feedback.opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001648/0.4007, allocations: 126.8 kB / 482.1 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.184e-05/0.4007, allocations: 27.66 kB / 482.1 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.727e-05/0.4008, allocations: 21.97 kB / 482.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4008, allocations: 7.953 kB / 482.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4008, allocations: 3.984 kB / 482.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.4008, allocations: 144 / 482.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003334/0.4012, allocations: 313.9 kB / 482.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4012, allocations: 0 / 482.4 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.487e-05/0.4013, allocations: 15.98 kB / 482.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001832/0.4015, allocations: 73.69 kB / 482.5 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.4015, allocations: 4 kB / 482.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00226/0.4037, allocations: 2.918 MB / 485.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4038, allocations: 0 / 485.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006416/0.4044, allocations: 365.9 kB / 485.8 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.836e-05/0.4045, allocations: 104.8 kB / 485.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.4045, allocations: 0 / 485.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.4048, allocations: 27.98 kB / 485.9 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.4048, allocations: 19.97 kB / 485.9 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.4048, allocations: 7.953 kB / 485.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001623/0.405, allocations: 182 kB / 486.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.405, allocations: 0 / 486.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000481/0.4055, allocations: 91.69 kB / 486.2 MB, free: 11.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001452/0.4057, allocations: 99.25 kB / 486.3 MB, free: 11.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005456/0.4062, allocations: 387.3 kB / 486.7 MB, free: 10.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4062, allocations: 0.625 kB / 486.7 MB, free: 10.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002836/0.4065, allocations: 305.9 kB / 487 MB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002856/0.4068, allocations: 33.48 kB / 487 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006712/0.4075, allocations: 341.9 kB / 487.4 MB, free: 10.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.4079, allocations: 0.7912 MB / 488.1 MB, free: 9.215 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.408, allocations: 26.06 kB / 488.2 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.373e-05/0.408, allocations: 19.44 kB / 488.2 MB, free: 9.168 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4081, allocations: 0 / 488.2 MB, free: 9.168 MB / 362.7 MB Notification: Performance of Templates: time 0.006326/0.4144, allocations: 3.153 MB / 491.3 MB, free: 6.039 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Subtracter/Subtracter.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Subtracter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches