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.001564/0.001564, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001209/0.001209, allocations: 167.3 kB / 24.99 MB, free: 8.746 MB / 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 1.06/1.06, allocations: 177.1 MB / 205.3 MB, free: 5.648 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 2.094e-06/2.094e-06, allocations: 0 / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.008e-05/3.217e-05, allocations: 2.312 kB / 273.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.007128/0.00716, allocations: 5.926 MB / 279 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003961/0.01112, allocations: 1.536 MB / 280.5 MB, free: 10.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001038/0.01216, allocations: 23.88 kB / 280.6 MB, free: 10.31 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005572/0.01272, allocations: 170.3 kB / 280.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001018/0.01373, allocations: 309 kB / 281 MB, free: 9.836 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001134/0.01487, allocations: 431.1 kB / 281.5 MB, free: 9.414 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001735/0.0166, allocations: 1.433 MB / 282.9 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00054/0.01714, allocations: 273.7 kB / 283.2 MB, free: 7.684 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00131/0.01845, allocations: 0.7759 MB / 283.9 MB, free: 6.906 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007317/0.01919, allocations: 446.8 kB / 284.4 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002366/0.01942, allocations: 136 kB / 284.5 MB, free: 6.336 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003322/0.01975, allocations: 179.9 kB / 284.7 MB, free: 6.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002078/0.01996, allocations: 279 kB / 284.9 MB, free: 5.887 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004699/0.02043, allocations: 427.1 kB / 285.4 MB, free: 5.469 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001183/0.02161, allocations: 0.9578 MB / 286.3 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.02162, allocations: 4 kB / 286.3 MB, free: 4.504 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.02162, allocations: 0 / 286.3 MB, free: 4.504 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.512e-05/0.02164, allocations: 0 / 286.3 MB, free: 4.504 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.00201/0.02364, allocations: 1.418 MB / 287.7 MB, free: 3.047 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.02369, allocations: 8.031 kB / 287.8 MB, free: 3.039 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003987/0.02409, allocations: 200.2 kB / 287.9 MB, free: 2.844 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006615/0.02475, allocations: 0.5154 MB / 288.5 MB, free: 2.301 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.159e-05/0.0248, allocations: 66.38 kB / 288.5 MB, free: 2.234 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.02494, allocations: 92.38 kB / 288.6 MB, free: 2.145 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.02608, allocations: 0.853 MB / 289.5 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.0261, allocations: 192 / 289.5 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.309e-05/0.02617, allocations: 40.38 kB / 289.5 MB, free: 1.18 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.342e-05/0.02619, allocations: 23.94 kB / 289.5 MB, free: 1.156 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008635/0.02706, allocations: 415.7 kB / 289.9 MB, free: 0.7539 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1363/0.1634, allocations: 2.63 MB / 292.6 MB, free: 27.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007034/0.1641, allocations: 429.9 kB / 293 MB, free: 27.76 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003261/0.1644, allocations: 230.8 kB / 293.2 MB, free: 27.7 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.601e-05/0.1645, allocations: 15.97 kB / 293.2 MB, free: 27.7 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.1645, allocations: 46.88 kB / 293.3 MB, free: 27.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 2.875e-06/0.1645, allocations: 0 / 293.3 MB, free: 27.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.002719/0.1672, allocations: 1.506 MB / 294.8 MB, free: 27.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.1672, allocations: 59.31 kB / 294.8 MB, free: 26.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005118/0.1678, allocations: 0.5462 MB / 295.4 MB, free: 26.68 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.1678, allocations: 41.02 kB / 295.4 MB, free: 26.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.168, allocations: 0.4886 MB / 295.9 MB, free: 26.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001699/0.1682, allocations: 272.9 kB / 296.2 MB, free: 26.11 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002081/0.1684, allocations: 152.8 kB / 296.3 MB, free: 26.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1686, allocations: 0.5492 MB / 296.9 MB, free: 25.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003181/0.1689, allocations: 142.1 kB / 297 MB, free: 25.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.1693, allocations: 330.9 kB / 297.3 MB, free: 25.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006667/0.1699, allocations: 0.5249 MB / 297.9 MB, free: 24.93 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.1699, allocations: 1.281 kB / 297.9 MB, free: 24.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001262/0.1712, allocations: 0.7759 MB / 298.6 MB, free: 24.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.1712, allocations: 7.25 kB / 298.7 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.1712, allocations: 4.219 kB / 298.7 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004573/0.1717, allocations: 161.1 kB / 298.8 MB, free: 24.63 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005144/0.1722, allocations: 191.9 kB / 299 MB, free: 24.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/0.1745, allocations: 2.787 MB / 301.8 MB, free: 22.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.1749, allocations: 29.53 kB / 301.8 MB, free: 22.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.605e-05/0.1749, allocations: 33.84 kB / 301.8 MB, free: 22.29 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.00021/0.1751, allocations: 203.6 kB / 302 MB, free: 22.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.1753, allocations: 103.4 kB / 302.1 MB, free: 22.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.403e-05/0.1754, allocations: 88.05 kB / 302.2 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.1754, allocations: 8.906 kB / 302.2 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.886e-05/0.1754, allocations: 3 kB / 302.2 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.1754, allocations: 3.469 kB / 302.2 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006534/0.176, allocations: 0.5594 MB / 302.8 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.176, allocations: 0 / 302.8 MB, free: 21.67 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003906/0.1764, allocations: 142.4 kB / 302.9 MB, free: 21.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000387/0.1768, allocations: 157.5 kB / 303.1 MB, free: 21.62 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.356e-05/0.1769, allocations: 21.27 kB / 303.1 MB, free: 21.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/0.179, allocations: 2.783 MB / 305.9 MB, free: 19.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.179, allocations: 3.938 kB / 305.9 MB, free: 19.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.1805, allocations: 0.936 MB / 306.8 MB, free: 18.88 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.023e-05/0.1806, allocations: 72.52 kB / 306.9 MB, free: 18.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.18e-05/0.1807, allocations: 16.12 kB / 306.9 MB, free: 18.82 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003705/0.181, allocations: 47.7 kB / 307 MB, free: 18.81 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.1812, allocations: 55.36 kB / 307 MB, free: 18.8 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.495e-05/0.1812, allocations: 22.58 kB / 307.1 MB, free: 18.8 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003172/0.1815, allocations: 360 kB / 307.4 MB, free: 18.62 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1815, allocations: 0 / 307.4 MB, free: 18.62 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008473/0.1824, allocations: 245.5 kB / 307.6 MB, free: 18.6 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.0002166/0.1826, allocations: 137.5 kB / 307.8 MB, free: 18.49 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001321/0.1839, allocations: 0.7801 MB / 308.6 MB, free: 18.16 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1839, allocations: 0 / 308.6 MB, free: 18.16 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007708/0.1847, allocations: 0.55 MB / 309.1 MB, free: 17.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.1853, allocations: 133.6 kB / 309.2 MB, free: 17.75 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002506/0.1878, allocations: 1.713 MB / 311 MB, free: 16.27 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001172/0.1879, allocations: 175.3 kB / 311.1 MB, free: 16.08 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002936/0.1882, allocations: 85.11 kB / 311.2 MB, free: 16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.1883, allocations: 52.48 kB / 311.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.1883, allocations: 0 / 311.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of Templates: time 0.01502/0.2034, allocations: 10.95 MB / 322.2 MB, free: 5.219 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.2012837789952755]