Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001745/0.001745, allocations: 180.8 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.72/1.72, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009095/0.0009096, allocations: 90.59 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002968/0.0002968, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2915, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1064/0.3979, allocations: 80.16 MB / 456 MB, free: 0.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.3982, allocations: 71.97 kB / 456 MB, free: 440 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0371/0.4353, allocations: 14.3 MB / 470.3 MB, free: 2.066 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.4354, allocations: 0 / 470.3 MB, free: 2.066 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.125e-05/0.4354, allocations: 28 kB / 470.4 MB, free: 2.039 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002221/0.4376, allocations: 1.126 MB / 471.5 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.4377, allocations: 11.97 kB / 471.5 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.4379, allocations: 102.8 kB / 471.6 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006566/0.4385, allocations: 0.4925 MB / 472.1 MB, free: 216 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/0.4386, allocations: 66 kB / 472.2 MB, free: 152 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.4387, allocations: 83.91 kB / 472.2 MB, free: 68 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.4402, allocations: 0.8766 MB / 473.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.4403, allocations: 3.938 kB / 473.1 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.844e-05/0.4403, allocations: 39.98 kB / 473.2 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.746e-05/0.4404, allocations: 20 kB / 473.2 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001464/0.4418, allocations: 0.8043 MB / 474 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004814/0.4467, allocations: 3.1 MB / 477.1 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.4478, allocations: 0.6589 MB / 477.7 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.395e-05/0.4478, allocations: 16.53 kB / 477.8 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/0.4479, allocations: 51.06 kB / 477.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.396e-06/0.4479, allocations: 0 / 477.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.004616/0.4525, allocations: 2.363 MB / 480.2 MB, free: 7.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.4526, allocations: 60.06 kB / 480.2 MB, free: 7.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004935/0.4531, allocations: 450.1 kB / 480.7 MB, free: 7.395 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/0.4531, allocations: 37.7 kB / 480.7 MB, free: 7.352 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/0.4534, allocations: 399.5 kB / 481.1 MB, free: 6.953 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.4535, allocations: 252.3 kB / 481.4 MB, free: 6.703 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.065e-05/0.4536, allocations: 16 kB / 481.4 MB, free: 6.688 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.4537, allocations: 374.7 kB / 481.7 MB, free: 6.312 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005675/0.4543, allocations: 321.9 kB / 482 MB, free: 6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006298/0.455, allocations: 433.1 kB / 482.5 MB, free: 5.539 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006184/0.4556, allocations: 370.9 kB / 482.8 MB, free: 5.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.4556, allocations: 4 kB / 482.8 MB, free: 5.176 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001922/0.4575, allocations: 1.056 MB / 483.9 MB, free: 4.109 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.634e-05/0.4576, allocations: 11.95 kB / 483.9 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.4576, allocations: 4 kB / 483.9 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005551/0.4581, allocations: 176.7 kB / 484.1 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008147/0.459, allocations: 195.8 kB / 484.3 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003547/0.4625, allocations: 2.651 MB / 486.9 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005696/0.4631, allocations: 40.03 kB / 487 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.489e-05/0.4632, allocations: 28 kB / 487 MB, free: 0.8711 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (84): * Single equations (assignments): 83 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,60.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003825/0.4636, allocations: 225.8 kB / 487.2 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.4637, allocations: 71.23 kB / 487.3 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.4639, allocations: 82.19 kB / 487.4 MB, free: 500 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.4639, allocations: 8 kB / 487.4 MB, free: 492 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.4639, allocations: 7.984 kB / 487.4 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.4639, allocations: 0 / 487.4 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009903/0.4649, allocations: 0.8456 MB / 488.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.4649, allocations: 7.938 kB / 488.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007145/0.4656, allocations: 151.8 kB / 488.4 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005121/0.4662, allocations: 176.7 kB / 488.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.868e-05/0.4662, allocations: 32.09 kB / 488.6 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003383/0.4696, allocations: 2.637 MB / 491.2 MB, free: 12.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.4696, allocations: 7.953 kB / 491.2 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.4721, allocations: 1.423 MB / 492.6 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001608/0.4722, allocations: 136.2 kB / 492.8 MB, free: 10.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.699e-05/0.4723, allocations: 16 kB / 492.8 MB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005418/0.4729, allocations: 63.95 kB / 492.9 MB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.473, allocations: 52.58 kB / 492.9 MB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.105e-05/0.4731, allocations: 27.97 kB / 492.9 MB, free: 10.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000383/0.4735, allocations: 358.8 kB / 493.3 MB, free: 10.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4735, allocations: 0 / 493.3 MB, free: 10.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007505/0.4742, allocations: 232.1 kB / 493.5 MB, free: 10.11 MB / 378.7 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.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,68.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002478/0.4745, allocations: 139.3 kB / 493.7 MB, free: 9.965 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.4765, allocations: 1.022 MB / 494.7 MB, free: 8.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4765, allocations: 0 / 494.7 MB, free: 8.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.4778, allocations: 0.6358 MB / 495.3 MB, free: 8.285 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006002/0.4785, allocations: 124.5 kB / 495.4 MB, free: 8.168 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003159/0.4816, allocations: 2.311 MB / 497.7 MB, free: 5.824 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004755/0.4821, allocations: 0.9697 MB / 498.7 MB, free: 4.824 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003924/0.4825, allocations: 81.06 kB / 498.8 MB, free: 4.746 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001499/0.4827, allocations: 51.41 kB / 498.8 MB, free: 4.695 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4827, allocations: 0 / 498.8 MB, free: 4.695 MB / 378.7 MB Notification: Performance of Templates: time 0.1778/0.6605, allocations: 9.412 MB / 0.4963 GB, free: 105 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches