Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001435/0.001435, allocations: 81.81 kB / 21.42 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001684/0.001684, allocations: 163 kB / 24.82 MB, free: 9.312 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.032/1.032, allocations: 177 MB / 205.1 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.944e-05/2.067e-05, allocations: 2.312 kB / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.01296/0.01298, allocations: 5.836 MB / 279.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005894/0.01887, allocations: 1.525 MB / 280.7 MB, free: 9.82 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006006/0.01947, allocations: 23.88 kB / 280.7 MB, free: 9.797 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004508/0.01992, allocations: 174.3 kB / 280.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003727/0.02365, allocations: 309 kB / 281.2 MB, free: 9.32 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001081/0.02473, allocations: 427.1 kB / 281.6 MB, free: 8.902 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.026, allocations: 1.433 MB / 283.1 MB, free: 7.465 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003421/0.02942, allocations: 285.7 kB / 283.3 MB, free: 7.164 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.03052, allocations: 0.772 MB / 284.1 MB, free: 6.391 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005505/0.03107, allocations: 450.8 kB / 284.6 MB, free: 5.949 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001962/0.03126, allocations: 136 kB / 284.7 MB, free: 5.816 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003599/0.03162, allocations: 179.8 kB / 284.9 MB, free: 5.641 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.03181, allocations: 283.1 kB / 285.1 MB, free: 5.363 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003484/0.0353, allocations: 427 kB / 285.6 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001049/0.03635, allocations: 0.9539 MB / 286.5 MB, free: 3.988 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.03635, allocations: 0 / 286.5 MB, free: 3.988 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.03635, allocations: 0 / 286.5 MB, free: 3.988 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.799e-05/0.03637, allocations: 0 / 286.5 MB, free: 3.988 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.004837/0.04121, allocations: 1.426 MB / 287.9 MB, free: 2.523 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.04125, allocations: 12.03 kB / 287.9 MB, free: 2.512 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003651/0.04162, allocations: 200.2 kB / 288.1 MB, free: 2.316 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005971/0.04221, allocations: 0.5075 MB / 288.7 MB, free: 1.781 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002684/0.04248, allocations: 70.38 kB / 288.7 MB, free: 1.711 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001166/0.0426, allocations: 96.36 kB / 288.8 MB, free: 1.617 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008558/0.04345, allocations: 0.7904 MB / 289.6 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.683e-05/0.04347, allocations: 192 / 289.6 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.255e-05/0.04353, allocations: 36.38 kB / 289.6 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.04355, allocations: 27.94 kB / 289.7 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005124/0.04406, allocations: 321.7 kB / 290 MB, free: 392 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1145/0.1586, allocations: 2.522 MB / 292.5 MB, free: 25.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00059/0.1592, allocations: 399.5 kB / 292.9 MB, free: 25.52 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.1594, allocations: 200.8 kB / 293.1 MB, free: 25.49 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.063e-05/0.1595, allocations: 17.7 kB / 293.1 MB, free: 25.49 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.1595, allocations: 46.53 kB / 293.2 MB, free: 25.45 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 3.186e-06/0.1595, allocations: 0.5156 kB / 293.2 MB, free: 25.45 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002292/0.1618, allocations: 1.257 MB / 294.4 MB, free: 25.15 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.454e-05/0.1618, allocations: 60.16 kB / 294.5 MB, free: 25.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005124/0.1623, allocations: 0.5402 MB / 295 MB, free: 24.9 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.1624, allocations: 44.34 kB / 295.1 MB, free: 24.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.1626, allocations: 0.489 MB / 295.5 MB, free: 24.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001627/0.1628, allocations: 276.8 kB / 295.8 MB, free: 24.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000225/0.163, allocations: 157.7 kB / 296 MB, free: 24.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.1632, allocations: 0.5613 MB / 296.5 MB, free: 23.9 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002517/0.1634, allocations: 109.9 kB / 296.6 MB, free: 23.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003261/0.1637, allocations: 300.4 kB / 296.9 MB, free: 23.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005807/0.1643, allocations: 477.6 kB / 297.4 MB, free: 23.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.1643, allocations: 2.344 kB / 297.4 MB, free: 23.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001161/0.1655, allocations: 0.6938 MB / 298.1 MB, free: 23.23 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.1655, allocations: 6.297 kB / 298.1 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.1655, allocations: 3.906 kB / 298.1 MB, free: 23.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004231/0.1659, allocations: 157 kB / 298.3 MB, free: 23.21 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005971/0.1665, allocations: 190.8 kB / 298.4 MB, free: 23.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002254/0.1688, allocations: 2.72 MB / 301.2 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004637/0.1693, allocations: 29.59 kB / 301.2 MB, free: 20.94 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.374e-05/0.1693, allocations: 28.47 kB / 301.2 MB, free: 20.93 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.0002409/0.1696, allocations: 206.5 kB / 301.4 MB, free: 20.73 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.1697, allocations: 98.75 kB / 301.5 MB, free: 20.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.1698, allocations: 88 kB / 301.6 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.1698, allocations: 7.844 kB / 301.6 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.248e-05/0.1698, allocations: 3.844 kB / 301.6 MB, free: 20.62 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.1699, allocations: 7.844 kB / 301.6 MB, free: 20.61 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007018/0.1706, allocations: 472.6 kB / 302.1 MB, free: 20.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.1706, allocations: 0 / 302.1 MB, free: 20.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.171, allocations: 141.9 kB / 302.2 MB, free: 20.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003834/0.1714, allocations: 157.1 kB / 302.4 MB, free: 20.37 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.458e-05/0.1715, allocations: 18.86 kB / 302.4 MB, free: 20.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001974/0.1734, allocations: 2.72 MB / 305.1 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1734, allocations: 0 / 305.1 MB, free: 18.11 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.1746, allocations: 0.8575 MB / 306 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.347e-05/0.1747, allocations: 75.44 kB / 306 MB, free: 17.7 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.899e-05/0.1747, allocations: 13.5 kB / 306.1 MB, free: 17.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003522/0.1751, allocations: 50.42 kB / 306.1 MB, free: 17.67 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.1752, allocations: 55.08 kB / 306.2 MB, free: 17.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.1752, allocations: 17.72 kB / 306.2 MB, free: 17.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001971/0.1754, allocations: 337.2 kB / 306.5 MB, free: 17.52 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1754, allocations: 3.828 kB / 306.5 MB, free: 17.52 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006575/0.1761, allocations: 238.4 kB / 306.7 MB, free: 17.5 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.0001683/0.1763, allocations: 138 kB / 306.9 MB, free: 17.39 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008784/0.1771, allocations: 0.7129 MB / 307.6 MB, free: 17.11 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1771, allocations: 0 / 307.6 MB, free: 17.11 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000496/0.1776, allocations: 0.5322 MB / 308.1 MB, free: 16.83 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004108/0.178, allocations: 137.8 kB / 308.3 MB, free: 16.78 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.1798, allocations: 1.693 MB / 309.9 MB, free: 15.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.89e-05/0.1799, allocations: 170.1 kB / 310.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002097/0.1801, allocations: 86.25 kB / 310.2 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.1804, allocations: 244.2 kB / 310.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1804, allocations: 0 / 310.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of Templates: time 0.01242/0.1929, allocations: 11.72 MB / 322.2 MB, free: 4.148 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.1156141739338636]