Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 111.7 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 198.8 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.649/1.649, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 51.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5056/0.5076, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008507/0.5161, allocations: 6.067 MB / 406.8 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004759/0.5209, allocations: 1.521 MB / 408.3 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001636/0.5226, allocations: 16 kB / 408.3 MB, free: 1.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007505/0.5235, allocations: 178.2 kB / 408.5 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.5249, allocations: 285.3 kB / 408.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.5263, allocations: 415.3 kB / 409.2 MB, free: 364 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001839/0.5282, allocations: 1.395 MB / 410.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007668/0.529, allocations: 425.2 kB / 411 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007239/0.5297, allocations: 0.4945 MB / 411.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006558/0.5304, allocations: 0.5719 MB / 412.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001752/0.5306, allocations: 132 kB / 412.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003638/0.5309, allocations: 168 kB / 412.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003128/0.5313, allocations: 275.2 kB / 412.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007109/0.532, allocations: 0.5832 MB / 413.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001939/0.5339, allocations: 1.543 MB / 414.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.534, allocations: 0 / 414.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.636e-06/0.534, allocations: 0 / 414.8 MB, free: 10.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.534, allocations: 0 / 414.8 MB, free: 10.75 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 221 * Number of variables: 221 Notification: Performance of Generate backend data structure: time 0.003226/0.5372, allocations: 1.372 MB / 416.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.544e-05/0.5373, allocations: 8.031 kB / 416.1 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002364/0.5375, allocations: 115.6 kB / 416.3 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.5388, allocations: 0.5576 MB / 416.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.5389, allocations: 70.38 kB / 416.9 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.539, allocations: 88.38 kB / 417 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.5409, allocations: 0.8549 MB / 417.8 MB, free: 7.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.5409, allocations: 3.938 kB / 417.8 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.206e-05/0.541, allocations: 36 kB / 417.9 MB, free: 7.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.53e-05/0.541, allocations: 24 kB / 417.9 MB, free: 7.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00178/0.5428, allocations: 0.8511 MB / 418.7 MB, free: 6.684 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006487/0.5493, allocations: 3.21 MB / 421.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.5509, allocations: 0.6762 MB / 422.6 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008514/0.5518, allocations: 439.1 kB / 423.1 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.621e-05/0.5519, allocations: 16.55 kB / 423.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.535e-05/0.5519, allocations: 39.12 kB / 423.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=69): time 4.288e-06/0.5519, allocations: 0 / 423.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.005493/0.5575, allocations: 2.271 MB / 425.4 MB, free: 15.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.5575, allocations: 56.06 kB / 425.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008744/0.5584, allocations: 0.6057 MB / 426 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.244e-05/0.5585, allocations: 41.7 kB / 426.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003003/0.5588, allocations: 447.3 kB / 426.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.559, allocations: 260.2 kB / 426.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002382/0.5592, allocations: 142.6 kB / 426.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.5594, allocations: 386.8 kB / 427.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006526/0.5601, allocations: 325.9 kB / 427.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008016/0.5609, allocations: 476.5 kB / 428.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.5623, allocations: 0.7969 MB / 428.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.5623, allocations: 4 kB / 428.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002323/0.5646, allocations: 1.118 MB / 430 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.5647, allocations: 8 kB / 430 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.5647, allocations: 0 / 430 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005747/0.5653, allocations: 188.7 kB / 430.2 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008532/0.5661, allocations: 199.8 kB / 430.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003714/0.5698, allocations: 2.89 MB / 433.3 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006803/0.5705, allocations: 40.05 kB / 433.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.079e-05/0.5706, allocations: 31.98 kB / 433.3 MB, free: 7.574 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004449/0.5711, allocations: 235.1 kB / 433.6 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000134/0.5712, allocations: 83 kB / 433.6 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001845/0.5714, allocations: 95.25 kB / 433.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.5714, allocations: 8 kB / 433.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.618e-05/0.5714, allocations: 11.98 kB / 433.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.5715, allocations: 3.984 kB / 433.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.5725, allocations: 0.8885 MB / 434.7 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.5725, allocations: 3.938 kB / 434.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000708/0.5733, allocations: 147.8 kB / 434.8 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004929/0.5738, allocations: 179.9 kB / 435 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.262e-05/0.5738, allocations: 23.98 kB / 435 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004016/0.5778, allocations: 2.884 MB / 437.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.5779, allocations: 0 / 437.9 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00318/0.581, allocations: 1.427 MB / 439.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002088/0.5813, allocations: 148.2 kB / 439.5 MB, free: 1.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.5814, allocations: 16 kB / 439.5 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/0.582, allocations: 51.95 kB / 439.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001336/0.5822, allocations: 52.58 kB / 439.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.033e-05/0.5823, allocations: 28.23 kB / 439.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004896/0.5827, allocations: 423.1 kB / 440 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5828, allocations: 4.188 kB / 440 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008509/0.5836, allocations: 244 kB / 440.3 MB, free: 424 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.vcs,Transistor2.ct.v,Transistor2.Tr.vcs) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,13,72.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002556/0.5839, allocations: 142.8 kB / 440.4 MB, free: 276 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002281/0.5862, allocations: 1.052 MB / 441.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.5862, allocations: 0 / 441.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00132/0.5875, allocations: 0.6355 MB / 442.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007398/0.5883, allocations: 150.7 kB / 442.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/0.5916, allocations: 1.987 MB / 444.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.5922, allocations: 0.9814 MB / 445.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004288/0.5926, allocations: 89.47 kB / 445.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001675/0.5928, allocations: 51.42 kB / 445.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.5928, allocations: 0 / 445.3 MB, free: 11.25 MB / 366.1 MB Notification: Performance of Templates: time 0.01903/0.6118, allocations: 11.27 MB / 456.6 MB, free: 88 kB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches