Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 83.69 kB / 21.18 MB, free: 3.395 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 165 kB / 24.56 MB, free: 24 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9912/0.9912, allocations: 177.1 MB / 205 MB, free: 5.25 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5003,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.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 273 MB, free: 1.367 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.939e-05/2.064e-05, allocations: 2.312 kB / 273 MB, free: 1.363 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004948/0.004968, allocations: 5.954 MB / 279 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002711/0.00768, allocations: 1.529 MB / 280.5 MB, free: 9.844 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004568/0.008136, allocations: 19.94 kB / 280.5 MB, free: 9.824 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003105/0.008447, allocations: 178.2 kB / 280.7 MB, free: 9.648 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004647/0.008912, allocations: 317 kB / 281 MB, free: 9.336 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007021/0.009614, allocations: 411.2 kB / 281.4 MB, free: 8.934 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001073/0.01069, allocations: 1.445 MB / 282.8 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003952/0.01108, allocations: 277.7 kB / 283.1 MB, free: 7.188 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007871/0.01187, allocations: 0.7643 MB / 283.9 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006544/0.01252, allocations: 458.7 kB / 284.3 MB, free: 5.973 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001228/0.01265, allocations: 136 kB / 284.4 MB, free: 5.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002248/0.01287, allocations: 175.9 kB / 284.6 MB, free: 5.668 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.01301, allocations: 287.1 kB / 284.9 MB, free: 5.387 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002805/0.01329, allocations: 423 kB / 285.3 MB, free: 4.973 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007402/0.01403, allocations: 0.9539 MB / 286.3 MB, free: 4.016 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.01404, allocations: 0 / 286.3 MB, free: 4.016 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.01404, allocations: 0 / 286.3 MB, free: 4.016 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.01405, allocations: 0 / 286.3 MB, free: 4.016 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.001485/0.01553, allocations: 1.43 MB / 287.7 MB, free: 2.547 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.01557, allocations: 8.031 kB / 287.7 MB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003146/0.01589, allocations: 200.2 kB / 287.9 MB, free: 2.344 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005094/0.0164, allocations: 0.5076 MB / 288.4 MB, free: 1.809 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.01644, allocations: 66.38 kB / 288.5 MB, free: 1.742 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.01654, allocations: 88.38 kB / 288.6 MB, free: 1.656 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008711/0.01741, allocations: 0.8569 MB / 289.4 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.01742, allocations: 192 / 289.4 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.535e-05/0.01748, allocations: 44.38 kB / 289.5 MB, free: 0.6836 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.918e-05/0.0175, allocations: 27.94 kB / 289.5 MB, free: 0.6562 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006319/0.01813, allocations: 423.6 kB / 289.9 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1364/0.1545, allocations: 2.616 MB / 292.5 MB, free: 25.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008758/0.1554, allocations: 438.4 kB / 292.9 MB, free: 25.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003816/0.1558, allocations: 233.9 kB / 293.2 MB, free: 24.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.371e-05/0.1558, allocations: 22.66 kB / 293.2 MB, free: 24.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.1559, allocations: 42.17 kB / 293.2 MB, free: 24.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 3.126e-06/0.1559, allocations: 0 / 293.2 MB, free: 24.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002781/0.1587, allocations: 1.497 MB / 294.7 MB, free: 24.56 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/0.1587, allocations: 61.06 kB / 294.8 MB, free: 24.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004808/0.1592, allocations: 0.5453 MB / 295.3 MB, free: 24.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.893e-05/0.1592, allocations: 41.06 kB / 295.4 MB, free: 24.28 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00024/0.1594, allocations: 0.4884 MB / 295.9 MB, free: 24.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.1596, allocations: 270.8 kB / 296.1 MB, free: 23.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001966/0.1598, allocations: 152.9 kB / 296.3 MB, free: 23.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001135/0.1599, allocations: 0.5537 MB / 296.8 MB, free: 23.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002758/0.1602, allocations: 142 kB / 297 MB, free: 23.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003611/0.1605, allocations: 333.6 kB / 297.3 MB, free: 23.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00066/0.1612, allocations: 0.5246 MB / 297.8 MB, free: 22.76 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.1612, allocations: 2.188 kB / 297.8 MB, free: 22.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001172/0.1624, allocations: 0.7608 MB / 298.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.1624, allocations: 7.641 kB / 298.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.1624, allocations: 6.781 kB / 298.6 MB, free: 22.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004322/0.1628, allocations: 155.9 kB / 298.8 MB, free: 22.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.1633, allocations: 195.2 kB / 298.9 MB, free: 22.46 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00205/0.1654, allocations: 2.785 MB / 301.7 MB, free: 20.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.1657, allocations: 34.23 kB / 301.8 MB, free: 20.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.696e-05/0.1657, allocations: 31.58 kB / 301.8 MB, free: 20.12 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.0001682/0.1659, allocations: 204.2 kB / 302 MB, free: 19.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.166, allocations: 99.16 kB / 302.1 MB, free: 19.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.965e-05/0.1661, allocations: 88 kB / 302.2 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.1661, allocations: 8.688 kB / 302.2 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/0.1661, allocations: 1.594 kB / 302.2 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.1661, allocations: 11.11 kB / 302.2 MB, free: 19.81 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006041/0.1668, allocations: 0.5555 MB / 302.7 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1668, allocations: 0 / 302.7 MB, free: 19.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003746/0.1671, allocations: 140.7 kB / 302.9 MB, free: 19.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003517/0.1675, allocations: 164.7 kB / 303 MB, free: 19.46 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.182e-05/0.1675, allocations: 21.06 kB / 303.1 MB, free: 19.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001808/0.1693, allocations: 2.777 MB / 305.8 MB, free: 17.14 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1693, allocations: 0 / 305.8 MB, free: 17.14 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001191/0.1705, allocations: 0.9395 MB / 306.8 MB, free: 16.72 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.871e-05/0.1706, allocations: 68.23 kB / 306.9 MB, free: 16.67 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.656e-05/0.1706, allocations: 21.95 kB / 306.9 MB, free: 16.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.1709, allocations: 46.23 kB / 306.9 MB, free: 16.65 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.171, allocations: 57.73 kB / 307 MB, free: 16.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-05/0.171, allocations: 27.66 kB / 307 MB, free: 16.63 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002575/0.1713, allocations: 355.5 kB / 307.3 MB, free: 16.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1713, allocations: 0 / 307.3 MB, free: 16.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005958/0.1719, allocations: 244.8 kB / 307.6 MB, free: 16.43 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.0002026/0.1721, allocations: 139.4 kB / 307.7 MB, free: 16.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009822/0.1731, allocations: 0.771 MB / 308.5 MB, free: 16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1731, allocations: 3.828 kB / 308.5 MB, free: 16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005426/0.1736, allocations: 0.5564 MB / 309.1 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000408/0.174, allocations: 126.6 kB / 309.2 MB, free: 15.65 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002312/0.1763, allocations: 1.714 MB / 310.9 MB, free: 14.47 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.1764, allocations: 175.3 kB / 311.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.1767, allocations: 87.84 kB / 311.1 MB, free: 14.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.1768, allocations: 56.48 kB / 311.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of SimCode: time 1.072e-06/0.1768, allocations: 0 / 311.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of Templates: time 0.01161/0.1884, allocations: 10.94 MB / 322.1 MB, free: 3.422 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.4434030507691205]