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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009552/0.0009552, allocations: 76.08 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008389/0.0008389, allocations: 141.1 kB / 24.54 MB, free: 28 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9436/0.9436, allocations: 173.3 MB / 201.1 MB, free: 9.336 MB / 186.7 MB " [Timeout remaining time 179] 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=5004,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=5004,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 268 MB, free: 6.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.208e-05/2.406e-05, allocations: 2.312 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.006684/0.006708, allocations: 5.926 MB / 273.9 MB, free: 468 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002484/0.009192, allocations: 1.501 MB / 275.4 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003514/0.009543, allocations: 23.88 kB / 275.5 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002816/0.009825, allocations: 174.3 kB / 275.6 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004668/0.01029, allocations: 313 kB / 275.9 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007869/0.01108, allocations: 419.3 kB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009936/0.01207, allocations: 1.433 MB / 277.8 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003214/0.01239, allocations: 281.7 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000697/0.01309, allocations: 0.7719 MB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003968/0.01349, allocations: 450.8 kB / 279.3 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.01362, allocations: 136 kB / 279.4 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000207/0.01382, allocations: 164 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001417/0.01396, allocations: 287 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002807/0.01425, allocations: 419.1 kB / 280.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006959/0.01494, allocations: 0.9538 MB / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.01494, allocations: 0 / 281.2 MB, free: 9.141 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.01495, allocations: 4 kB / 281.2 MB, free: 9.137 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.01496, allocations: 0 / 281.2 MB, free: 9.137 MB / 266.7 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.001803/0.01676, allocations: 1.418 MB / 282.6 MB, free: 7.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.01681, allocations: 8.922 kB / 282.6 MB, free: 7.672 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002552/0.01707, allocations: 188.2 kB / 282.8 MB, free: 7.488 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006137/0.01768, allocations: 0.4999 MB / 283.3 MB, free: 6.961 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.01773, allocations: 70.36 kB / 283.4 MB, free: 6.891 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.01786, allocations: 96.33 kB / 283.5 MB, free: 6.797 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.01895, allocations: 0.853 MB / 284.3 MB, free: 5.875 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/0.01897, allocations: 4.125 kB / 284.3 MB, free: 5.871 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-05/0.01904, allocations: 36.38 kB / 284.4 MB, free: 5.836 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.01906, allocations: 27.94 kB / 284.4 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008004/0.01986, allocations: 415.7 kB / 284.8 MB, free: 5.402 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003748/0.02361, allocations: 2.632 MB / 287.4 MB, free: 2.656 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006771/0.02429, allocations: 441.1 kB / 287.9 MB, free: 2.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003488/0.02464, allocations: 226 kB / 288.1 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.296e-05/0.02468, allocations: 20.64 kB / 288.1 MB, free: 1.957 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.02472, allocations: 46.05 kB / 288.2 MB, free: 1.902 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.524e-06/0.02472, allocations: 0 / 288.2 MB, free: 1.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002862/0.02758, allocations: 1.494 MB / 289.7 MB, free: 380 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.948e-05/0.02761, allocations: 60.06 kB / 289.7 MB, free: 308 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1147/0.1423, allocations: 0.552 MB / 290.3 MB, free: 29.66 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.1425, allocations: 41.36 kB / 290.3 MB, free: 29.62 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002245/0.1427, allocations: 493 kB / 290.8 MB, free: 29.49 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.1429, allocations: 269.2 kB / 291 MB, free: 29.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.143, allocations: 157.6 kB / 291.2 MB, free: 29.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.735e-05/0.1431, allocations: 0.5486 MB / 291.7 MB, free: 28.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.1434, allocations: 141.9 kB / 291.9 MB, free: 28.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003262/0.1437, allocations: 334.2 kB / 292.2 MB, free: 28.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005787/0.1443, allocations: 0.5237 MB / 292.7 MB, free: 28.44 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1443, allocations: 4.844 kB / 292.7 MB, free: 28.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001125/0.1454, allocations: 0.7691 MB / 293.5 MB, free: 28.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.1455, allocations: 10.55 kB / 293.5 MB, free: 28.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1455, allocations: 4.344 kB / 293.5 MB, free: 28.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004068/0.1459, allocations: 159.2 kB / 293.7 MB, free: 28.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004971/0.1464, allocations: 196.9 kB / 293.9 MB, free: 28.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002003/0.1484, allocations: 2.78 MB / 296.7 MB, free: 26.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.1487, allocations: 33.17 kB / 296.7 MB, free: 26.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-05/0.1487, allocations: 35.31 kB / 296.7 MB, free: 26.32 MB / 266.7 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.0001624/0.1489, allocations: 198.4 kB / 296.9 MB, free: 26.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001005/0.149, allocations: 103.5 kB / 297 MB, free: 26.12 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.2e-05/0.1491, allocations: 90.33 kB / 297.1 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1491, allocations: 11.09 kB / 297.1 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.1491, allocations: 2.594 kB / 297.1 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1491, allocations: 4.625 kB / 297.1 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005537/0.1497, allocations: 0.5495 MB / 297.7 MB, free: 25.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.1497, allocations: 1.172 kB / 297.7 MB, free: 25.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003609/0.15, allocations: 136.5 kB / 297.8 MB, free: 25.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003287/0.1503, allocations: 158.4 kB / 298 MB, free: 25.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.672e-05/0.1504, allocations: 21.88 kB / 298 MB, free: 25.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/0.152, allocations: 2.787 MB / 300.8 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.152, allocations: 1.422 kB / 300.8 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/0.1532, allocations: 0.9419 MB / 301.7 MB, free: 23.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/0.1532, allocations: 69.31 kB / 301.8 MB, free: 23.22 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.582e-05/0.1533, allocations: 12.36 kB / 301.8 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.1536, allocations: 47.64 kB / 301.8 MB, free: 23.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.1537, allocations: 58.7 kB / 301.9 MB, free: 23.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.1537, allocations: 23.55 kB / 301.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002633/0.154, allocations: 363.1 kB / 302.3 MB, free: 23.01 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.154, allocations: 0 / 302.3 MB, free: 23.01 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000563/0.1545, allocations: 241.7 kB / 302.5 MB, free: 22.98 MB / 266.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.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.0001772/0.1547, allocations: 135.8 kB / 302.6 MB, free: 22.88 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.1559, allocations: 0.7761 MB / 303.4 MB, free: 22.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.1559, allocations: 0 / 303.4 MB, free: 22.54 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006372/0.1566, allocations: 0.5517 MB / 304 MB, free: 22.25 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004433/0.157, allocations: 139.2 kB / 304.1 MB, free: 22.2 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.1591, allocations: 1.705 MB / 305.8 MB, free: 21.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001362/0.1593, allocations: 174.5 kB / 306 MB, free: 21.14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002209/0.1595, allocations: 84.64 kB / 306.1 MB, free: 21.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.1596, allocations: 56.06 kB / 306.1 MB, free: 21.11 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1596, allocations: 0 / 306.1 MB, free: 21.11 MB / 266.7 MB Notification: Performance of Templates: time 0.012/0.1716, allocations: 11.48 MB / 317.6 MB, free: 12.19 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1642932347021997]