Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001532/0.001531, allocations: 185.5 kB / 16.41 MB, free: 5.727 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.902/1.902, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001115/0.001115, allocations: 100.3 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.0003899, allocations: 8 kB / 327 MB, free: 232 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3292, allocations: 47.57 MB / 374.5 MB, free: 45.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1273/0.4565, allocations: 80.17 MB / 454.7 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002769/0.4569, allocations: 67.97 kB / 454.8 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06478/0.5217, allocations: 14.3 MB / 469.1 MB, free: 2.184 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.5217, allocations: 0 / 469.1 MB, free: 2.184 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.873e-05/0.5218, allocations: 27.98 kB / 469.1 MB, free: 2.156 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.003908/0.5257, allocations: 1.13 MB / 470.2 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.5258, allocations: 8.031 kB / 470.2 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004033/0.5262, allocations: 102.8 kB / 470.3 MB, free: 0.8633 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/0.5274, allocations: 0.4925 MB / 470.8 MB, free: 336 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.345e-05/0.5275, allocations: 58 kB / 470.9 MB, free: 280 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002267/0.5277, allocations: 83.91 kB / 471 MB, free: 196 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002781/0.5305, allocations: 0.8806 MB / 471.9 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.768e-05/0.5306, allocations: 7.922 kB / 471.9 MB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001408/0.5307, allocations: 36 kB / 471.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.629e-05/0.5308, allocations: 20 kB / 471.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002798/0.5336, allocations: 0.8004 MB / 472.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008631/0.5423, allocations: 3.107 MB / 475.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001946/0.5443, allocations: 0.6589 MB / 476.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.5444, allocations: 20.53 kB / 476.5 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.437e-05/0.5445, allocations: 43.06 kB / 476.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 3.657e-06/0.5445, allocations: 0 / 476.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.008738/0.5532, allocations: 2.363 MB / 478.9 MB, free: 8.031 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.5533, allocations: 60.06 kB / 479 MB, free: 7.961 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009355/0.5543, allocations: 450.1 kB / 479.4 MB, free: 7.516 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001722/0.5545, allocations: 37.7 kB / 479.4 MB, free: 7.473 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003525/0.5548, allocations: 422 kB / 479.9 MB, free: 7.055 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003206/0.5552, allocations: 256.3 kB / 480.1 MB, free: 6.801 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.861e-05/0.5553, allocations: 16 kB / 480.1 MB, free: 6.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.5555, allocations: 342.8 kB / 480.5 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.5566, allocations: 321.8 kB / 480.8 MB, free: 6.129 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001229/0.5579, allocations: 433.1 kB / 481.2 MB, free: 5.668 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001218/0.5591, allocations: 370.9 kB / 481.6 MB, free: 5.309 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.5591, allocations: 7.938 kB / 481.6 MB, free: 5.301 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.003509/0.5627, allocations: 1.017 MB / 482.6 MB, free: 4.273 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.5627, allocations: 11.95 kB / 482.6 MB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.5628, allocations: 0 / 482.6 MB, free: 4.262 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009333/0.5637, allocations: 184 kB / 482.8 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001682/0.5654, allocations: 191.8 kB / 483 MB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006042/0.5715, allocations: 2.65 MB / 485.6 MB, free: 1.105 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/0.5727, allocations: 40.05 kB / 485.6 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.5728, allocations: 31.98 kB / 485.7 MB, free: 1.035 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.0005821/0.5734, allocations: 221.8 kB / 485.9 MB, free: 0.8086 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002036/0.5736, allocations: 71.16 kB / 486 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002975/0.5739, allocations: 86.17 kB / 486 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/0.5739, allocations: 8 kB / 486.1 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.862e-05/0.574, allocations: 4 kB / 486.1 MB, free: 0.6406 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.574, allocations: 7.984 kB / 486.1 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001698/0.5757, allocations: 0.8378 MB / 486.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.5757, allocations: 0 / 486.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/0.5772, allocations: 155.8 kB / 487.1 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009983/0.5783, allocations: 179.4 kB / 487.2 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001612/0.5784, allocations: 27.97 kB / 487.3 MB, free: 15.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005851/0.5843, allocations: 2.648 MB / 489.9 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5844, allocations: 7.891 kB / 489.9 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004775/0.5891, allocations: 1.408 MB / 491.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003044/0.5895, allocations: 140.2 kB / 491.5 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002081/0.5897, allocations: 20 kB / 491.5 MB, free: 11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.5908, allocations: 63.95 kB / 491.5 MB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.591, allocations: 52.56 kB / 491.6 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.914e-05/0.5911, allocations: 23.98 kB / 491.6 MB, free: 10.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006908/0.5918, allocations: 354.8 kB / 492 MB, free: 10.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5919, allocations: 0 / 492 MB, free: 10.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00129/0.5932, allocations: 244.1 kB / 492.2 MB, free: 10.28 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.0003542/0.5935, allocations: 138.6 kB / 492.3 MB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003866/0.5974, allocations: 1.022 MB / 493.4 MB, free: 9.098 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.5975, allocations: 0 / 493.4 MB, free: 9.098 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002547/0.6, allocations: 0.6436 MB / 494 MB, free: 8.445 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.6012, allocations: 118.4 kB / 494.1 MB, free: 8.332 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005615/0.6068, allocations: 2.344 MB / 496.5 MB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007562/0.6076, allocations: 0.9735 MB / 497.4 MB, free: 4.945 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/0.6081, allocations: 59.41 kB / 497.5 MB, free: 4.887 MB / 378.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6081, allocations: 4 kB / 497.5 MB, free: 4.883 MB / 378.7 MB Notification: Performance of Templates: time 0.2884/0.8965, allocations: 13.07 MB / 0.4986 GB, free: 102.1 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches