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.002616/0.002616, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002999/0.002999, allocations: 145.1 kB / 24.26 MB, free: 172 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 1.535/1.535, allocations: 173.4 MB / 200.8 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 178] 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.203e-06/1.203e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.5e-05/3.62e-05, allocations: 6.312 kB / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.008798/0.008834, allocations: 5.857 MB / 273.2 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003451/0.01229, allocations: 1.509 MB / 274.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004792/0.01276, allocations: 19.94 kB / 274.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004239/0.01319, allocations: 174.2 kB / 274.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006555/0.01384, allocations: 309 kB / 275.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009169/0.01476, allocations: 415.3 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001994/0.01676, allocations: 1.437 MB / 277 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005252/0.01728, allocations: 281.7 kB / 277.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.01842, allocations: 0.772 MB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000709/0.01913, allocations: 446.8 kB / 278.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002225/0.01935, allocations: 136 kB / 278.7 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003599/0.01971, allocations: 175.9 kB / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003097/0.02002, allocations: 279 kB / 279.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005496/0.02057, allocations: 423.1 kB / 279.5 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001977/0.02255, allocations: 1.616 MB / 281.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.02255, allocations: 0 / 281.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.02255, allocations: 4 kB / 281.1 MB, free: 8.828 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.02257, allocations: 0 / 281.1 MB, free: 8.828 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.00309/0.02566, allocations: 1.5 MB / 282.6 MB, free: 7.289 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.0257, allocations: 8.922 kB / 282.6 MB, free: 7.281 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003458/0.02605, allocations: 188.2 kB / 282.8 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001119/0.02717, allocations: 0.5116 MB / 283.3 MB, free: 6.559 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.647e-05/0.02723, allocations: 62.38 kB / 283.4 MB, free: 6.496 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001724/0.0274, allocations: 100.3 kB / 283.5 MB, free: 6.398 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001902/0.02931, allocations: 1.075 MB / 284.6 MB, free: 5.258 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.02933, allocations: 192 / 284.6 MB, free: 5.258 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.382e-05/0.02942, allocations: 36.38 kB / 284.6 MB, free: 5.223 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.806e-05/0.02945, allocations: 23.94 kB / 284.6 MB, free: 5.199 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001753/0.0312, allocations: 0.7926 MB / 285.4 MB, free: 4.406 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006488/0.03769, allocations: 3.206 MB / 288.6 MB, free: 1.086 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001245/0.03894, allocations: 0.6301 MB / 289.3 MB, free: 448 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007133/0.03965, allocations: 374 kB / 289.6 MB, free: 68 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.371e-05/0.03972, allocations: 20.66 kB / 289.7 MB, free: 48 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.1001/0.1398, allocations: 51.08 kB / 289.7 MB, free: 32.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 8.095e-06/0.1398, allocations: 0 / 289.7 MB, free: 32.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.0043/0.1441, allocations: 2.135 MB / 291.8 MB, free: 31.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.1442, allocations: 61.09 kB / 291.9 MB, free: 31.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007873/0.1449, allocations: 0.7193 MB / 292.6 MB, free: 31.44 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.145, allocations: 37.36 kB / 292.7 MB, free: 31.4 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002636/0.1452, allocations: 0.5231 MB / 293.2 MB, free: 31.03 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.1454, allocations: 287.6 kB / 293.5 MB, free: 30.84 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002743/0.1457, allocations: 178.2 kB / 293.6 MB, free: 30.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.1459, allocations: 0.6079 MB / 294.2 MB, free: 30.19 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005593/0.1464, allocations: 305.2 kB / 294.5 MB, free: 30.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000652/0.1471, allocations: 0.5152 MB / 295.1 MB, free: 29.76 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001207/0.1483, allocations: 0.8809 MB / 295.9 MB, free: 29.27 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-06/0.1483, allocations: 2.156 kB / 295.9 MB, free: 29.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002046/0.1503, allocations: 1.125 MB / 297.1 MB, free: 28.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1504, allocations: 6.438 kB / 297.1 MB, free: 28.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.1504, allocations: 3.844 kB / 297.1 MB, free: 28.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006435/0.151, allocations: 210.1 kB / 297.3 MB, free: 28.76 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008416/0.1519, allocations: 191.8 kB / 297.5 MB, free: 28.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003344/0.1552, allocations: 3.396 MB / 300.9 MB, free: 26.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006638/0.1559, allocations: 26.69 kB / 300.9 MB, free: 26.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.322e-05/0.1559, allocations: 34.95 kB / 300.9 MB, free: 26.06 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.0003794/0.1563, allocations: 284.8 kB / 301.2 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.1565, allocations: 103.2 kB / 301.3 MB, free: 25.77 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.1567, allocations: 92.84 kB / 301.4 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.1567, allocations: 7.094 kB / 301.4 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.241e-05/0.1567, allocations: 4.25 kB / 301.4 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.1567, allocations: 5.141 kB / 301.4 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.1578, allocations: 0.7654 MB / 302.2 MB, free: 25.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.1578, allocations: 4.688 kB / 302.2 MB, free: 25.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007202/0.1585, allocations: 137 kB / 302.3 MB, free: 25.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006046/0.1591, allocations: 199.1 kB / 302.5 MB, free: 25.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-05/0.1592, allocations: 22.25 kB / 302.5 MB, free: 25.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003463/0.1626, allocations: 3.399 MB / 305.9 MB, free: 22.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1626, allocations: 0 / 305.9 MB, free: 22.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002293/0.1649, allocations: 1.446 MB / 307.4 MB, free: 21.85 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.1651, allocations: 63.2 kB / 307.4 MB, free: 21.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.1652, allocations: 17.89 kB / 307.4 MB, free: 21.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000584/0.1658, allocations: 52.58 kB / 307.5 MB, free: 21.78 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001537/0.166, allocations: 57.95 kB / 307.6 MB, free: 21.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.404e-05/0.166, allocations: 22.34 kB / 307.6 MB, free: 21.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004919/0.1665, allocations: 458.5 kB / 308 MB, free: 21.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1665, allocations: 0 / 308 MB, free: 21.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008735/0.1674, allocations: 243.2 kB / 308.3 MB, free: 21.38 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.0002373/0.1676, allocations: 138.7 kB / 308.4 MB, free: 21.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002014/0.1696, allocations: 1.091 MB / 309.5 MB, free: 20.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.1696, allocations: 0 / 309.5 MB, free: 20.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.1708, allocations: 0.7063 MB / 310.2 MB, free: 19.57 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007085/0.1715, allocations: 148.7 kB / 310.3 MB, free: 19.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.1741, allocations: 1.836 MB / 312.2 MB, free: 17.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.1743, allocations: 396.3 kB / 312.6 MB, free: 17.42 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003519/0.1747, allocations: 81.69 kB / 312.6 MB, free: 17.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.1748, allocations: 59.14 kB / 312.7 MB, free: 17.3 MB / 266.7 MB Notification: Performance of SimCode: time 2.093e-06/0.1748, allocations: 0 / 312.7 MB, free: 17.3 MB / 266.7 MB Notification: Performance of Templates: time 0.01595/0.1908, allocations: 10.93 MB / 323.6 MB, free: 6.711 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.965946940006688]