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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001858/0.001858, allocations: 114.4 kB / 17.28 MB, free: 6.199 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.00217/0.00217, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.794/1.794, allocations: 205.1 MB / 224.1 MB, free: 12.43 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 48.16 kB / 280.1 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08686/0.08812, allocations: 46.64 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006326/0.09449, allocations: 5.695 MB / 332.5 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002787/0.09733, allocations: 1.442 MB / 333.9 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007/0.09806, allocations: 15.94 kB / 333.9 MB, free: 13.6 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003878/0.09849, allocations: 111.1 kB / 334 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000712/0.09922, allocations: 238 kB / 334.3 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000849/0.1001, allocations: 311.6 kB / 334.6 MB, free: 12.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001599/0.1017, allocations: 1.238 MB / 335.8 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005738/0.1023, allocations: 428.9 kB / 336.2 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007347/0.103, allocations: 462.5 kB / 336.7 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005392/0.1036, allocations: 0.5213 MB / 337.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001488/0.1037, allocations: 124 kB / 337.3 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002579/0.104, allocations: 164 kB / 337.5 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.1042, allocations: 247.2 kB / 337.7 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000456/0.1046, allocations: 0.5367 MB / 338.3 MB, free: 9.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.106, allocations: 1.402 MB / 339.7 MB, free: 7.824 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.106, allocations: 4 kB / 339.7 MB, free: 7.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.106, allocations: 0 / 339.7 MB, free: 7.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.1061, allocations: 0 / 339.7 MB, free: 7.82 MB / 286.1 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.002664/0.1087, allocations: 1.282 MB / 341 MB, free: 6.484 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.1088, allocations: 8.031 kB / 341 MB, free: 6.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002736/0.1091, allocations: 107.7 kB / 341.1 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006711/0.1097, allocations: 0.5051 MB / 341.6 MB, free: 5.824 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.329e-05/0.1098, allocations: 66.38 kB / 341.6 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001469/0.11, allocations: 88.28 kB / 341.7 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001678/0.1116, allocations: 0.8769 MB / 342.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/0.1117, allocations: 3.938 kB / 342.6 MB, free: 4.777 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.74e-05/0.1118, allocations: 32 kB / 342.6 MB, free: 4.746 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.1118, allocations: 20 kB / 342.7 MB, free: 4.727 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.1133, allocations: 0.7847 MB / 343.4 MB, free: 3.945 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004963/0.1183, allocations: 3.064 MB / 346.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.1194, allocations: 0.6461 MB / 347.1 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006449/0.1201, allocations: 402.5 kB / 347.5 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.058e-05/0.1202, allocations: 16.55 kB / 347.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.1202, allocations: 39.12 kB / 347.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 4.118e-06/0.1202, allocations: 4 kB / 347.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=71): time 0.004468/0.1247, allocations: 2.193 MB / 349.8 MB, free: 13.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.1248, allocations: 60.06 kB / 349.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007136/0.1255, allocations: 0.499 MB / 350.4 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.455e-05/0.1256, allocations: 33.7 kB / 350.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002653/0.1258, allocations: 395.4 kB / 350.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002648/0.1261, allocations: 256.4 kB / 351 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002274/0.1263, allocations: 138.6 kB / 351.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.1265, allocations: 374.8 kB / 351.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006112/0.1272, allocations: 309.9 kB / 351.8 MB, free: 11.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006822/0.1278, allocations: 425.1 kB / 352.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001415/0.1293, allocations: 0.7428 MB / 353 MB, free: 10.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1293, allocations: 4 kB / 353 MB, free: 10.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002239/0.1315, allocations: 1.036 MB / 354 MB, free: 9.035 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.1316, allocations: 12.16 kB / 354 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.1316, allocations: 11.86 kB / 354 MB, free: 9.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006154/0.1322, allocations: 184.6 kB / 354.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008196/0.133, allocations: 187.8 kB / 354.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003778/0.1368, allocations: 2.847 MB / 357.3 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006622/0.1375, allocations: 40.03 kB / 357.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.447e-05/0.1376, allocations: 27.94 kB / 357.3 MB, free: 5.598 MB / 302.1 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 (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,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004137/0.138, allocations: 225.8 kB / 357.5 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.1381, allocations: 71.16 kB / 357.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001573/0.1383, allocations: 86.17 kB / 357.7 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.979e-06/0.1383, allocations: 16.05 kB / 357.7 MB, free: 5.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.693e-05/0.1383, allocations: 8 kB / 357.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.1384, allocations: 0 / 357.7 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001061/0.1394, allocations: 0.8339 MB / 358.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1394, allocations: 0 / 358.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006895/0.1401, allocations: 147.8 kB / 358.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005482/0.1407, allocations: 177.3 kB / 358.9 MB, free: 3.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.778e-05/0.1408, allocations: 27.92 kB / 358.9 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003659/0.1444, allocations: 2.864 MB / 361.8 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/0.1445, allocations: 7.922 kB / 361.8 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002596/0.1471, allocations: 1.377 MB / 363.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001941/0.1473, allocations: 136.3 kB / 363.3 MB, free: 15.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.88e-05/0.1474, allocations: 19.94 kB / 363.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005513/0.1479, allocations: 51.95 kB / 363.4 MB, free: 15.31 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001464/0.1481, allocations: 56.52 kB / 363.4 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-05/0.1482, allocations: 23.98 kB / 363.4 MB, free: 15.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004351/0.1486, allocations: 358.9 kB / 363.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1486, allocations: 0 / 363.8 MB, free: 14.89 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008028/0.1494, allocations: 220 kB / 364 MB, free: 14.67 MB / 318.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.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 (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,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002728/0.1497, allocations: 135.2 kB / 364.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002538/0.1522, allocations: 1.029 MB / 365.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.1523, allocations: 0 / 365.2 MB, free: 13.49 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/0.1536, allocations: 0.6316 MB / 365.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006986/0.1543, allocations: 134.5 kB / 365.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003462/0.1578, allocations: 2.257 MB / 368.2 MB, free: 10.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.1583, allocations: 0.9539 MB / 369.1 MB, free: 9.441 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003861/0.1587, allocations: 81.06 kB / 369.2 MB, free: 9.363 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.1589, allocations: 55.41 kB / 369.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of SimCode: time 1.373e-06/0.1589, allocations: 0 / 369.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of Templates: time 0.165/0.3239, allocations: 10.31 MB / 379.6 MB, free: 52.24 MB / 318.1 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