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.0009788/0.0009788, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0009518/0.0009518, allocations: 145.8 kB / 25.59 MB, free: 8.605 MB / 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.9014/0.9014, allocations: 173.4 MB / 202.2 MB, free: 8.309 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.322e-06/1.322e-06, allocations: 0 / 269.2 MB, free: 9.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.715e-05/1.847e-05, allocations: 3.062 kB / 269.2 MB, free: 9.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.004852/0.004871, allocations: 5.814 MB / 275 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.006751, allocations: 1.501 MB / 276.5 MB, free: 2.406 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003564/0.007107, allocations: 24.97 kB / 276.6 MB, free: 2.383 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002802/0.007387, allocations: 170.3 kB / 276.7 MB, free: 2.215 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004455/0.007833, allocations: 313.4 kB / 277 MB, free: 1.906 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007235/0.008556, allocations: 411.3 kB / 277.4 MB, free: 1.504 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001122/0.009678, allocations: 1.437 MB / 278.9 MB, free: 64 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003751/0.01005, allocations: 281.7 kB / 279.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008959/0.01095, allocations: 0.7681 MB / 279.9 MB, free: 15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004565/0.01141, allocations: 446.8 kB / 280.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.01155, allocations: 136 kB / 280.5 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.01176, allocations: 175.9 kB / 280.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000163/0.01192, allocations: 287 kB / 280.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003139/0.01224, allocations: 423.1 kB / 281.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008562/0.01309, allocations: 0.95 MB / 282.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.01309, allocations: 0 / 282.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.0131, allocations: 0 / 282.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.122e-05/0.01311, allocations: 0 / 282.3 MB, free: 12.61 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.001519/0.01463, allocations: 1.426 MB / 283.7 MB, free: 11.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.01466, allocations: 8.031 kB / 283.7 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001986/0.01486, allocations: 188.2 kB / 283.9 MB, free: 10.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004877/0.01535, allocations: 0.4999 MB / 284.4 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.71e-05/0.01539, allocations: 62.38 kB / 284.5 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001025/0.01549, allocations: 108.2 kB / 284.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006807/0.01617, allocations: 0.7827 MB / 285.4 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.01619, allocations: 192 / 285.4 MB, free: 9.402 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.479e-05/0.01624, allocations: 36.38 kB / 285.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.01626, allocations: 31.94 kB / 285.4 MB, free: 9.336 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.01666, allocations: 325.7 kB / 285.7 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.01946, allocations: 2.539 MB / 288.3 MB, free: 6.375 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000427/0.01988, allocations: 401.7 kB / 288.7 MB, free: 5.969 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/0.02014, allocations: 206 kB / 288.9 MB, free: 5.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.338e-05/0.02018, allocations: 12.66 kB / 288.9 MB, free: 5.746 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.635e-05/0.02021, allocations: 42.05 kB / 288.9 MB, free: 5.695 MB / 266.7 MB Notification: Performance of pre-optimization done (n=69): time 1.874e-06/0.02021, allocations: 0 / 288.9 MB, free: 5.695 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.001776/0.02199, allocations: 1.261 MB / 290.2 MB, free: 4.402 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.02202, allocations: 60.06 kB / 290.3 MB, free: 4.332 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003293/0.02235, allocations: 0.5372 MB / 290.8 MB, free: 3.777 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.02239, allocations: 45.64 kB / 290.8 MB, free: 3.727 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.02259, allocations: 498.9 kB / 291.3 MB, free: 3.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001272/0.02272, allocations: 273.6 kB / 291.6 MB, free: 2.961 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001546/0.02287, allocations: 164.2 kB / 291.7 MB, free: 2.793 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.02301, allocations: 0.5584 MB / 292.3 MB, free: 2.223 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.02316, allocations: 109.8 kB / 292.4 MB, free: 2.113 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000233/0.0234, allocations: 305.8 kB / 292.7 MB, free: 1.746 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004073/0.0238, allocations: 469.3 kB / 293.2 MB, free: 1.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.02381, allocations: 4 kB / 293.2 MB, free: 1.219 MB / 266.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.000778/0.02458, allocations: 0.6956 MB / 293.9 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.0246, allocations: 9.875 kB / 293.9 MB, free: 0.5039 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.02461, allocations: 4 kB / 293.9 MB, free: 0.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002958/0.0249, allocations: 157.8 kB / 294 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.02531, allocations: 191.8 kB / 294.2 MB, free: 160 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.02717, allocations: 2.719 MB / 296.9 MB, free: 13.33 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002618/0.02743, allocations: 27.98 kB / 297 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.02747, allocations: 27.98 kB / 297 MB, free: 13.27 MB / 282.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.0001707/0.02764, allocations: 208.3 kB / 297.2 MB, free: 13.06 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.02774, allocations: 99.53 kB / 297.3 MB, free: 12.96 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.781e-05/0.02783, allocations: 90.59 kB / 297.4 MB, free: 12.87 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.02784, allocations: 8 kB / 297.4 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.02784, allocations: 0 / 297.4 MB, free: 12.86 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.02785, allocations: 7.984 kB / 297.4 MB, free: 12.85 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000432/0.02828, allocations: 469.8 kB / 297.9 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.02828, allocations: 0 / 297.9 MB, free: 12.37 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000331/0.02861, allocations: 139.8 kB / 298 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002723/0.02889, allocations: 155.6 kB / 298.2 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.32e-05/0.02892, allocations: 19.98 kB / 298.2 MB, free: 12.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002115/0.03104, allocations: 2.716 MB / 300.9 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.03104, allocations: 0 / 300.9 MB, free: 9.238 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.0321, allocations: 0.8605 MB / 301.7 MB, free: 8.352 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.115e-05/0.03219, allocations: 67.52 kB / 301.8 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.569e-05/0.03225, allocations: 12 kB / 301.8 MB, free: 8.273 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003127/0.03257, allocations: 47.97 kB / 301.9 MB, free: 8.227 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.617e-05/0.03265, allocations: 56.53 kB / 301.9 MB, free: 8.172 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.03268, allocations: 28.11 kB / 302 MB, free: 8.145 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000201/0.03288, allocations: 338.6 kB / 302.3 MB, free: 7.816 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03288, allocations: 0 / 302.3 MB, free: 7.816 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005504/0.03343, allocations: 243.9 kB / 302.5 MB, free: 7.578 MB / 282.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.0002014/0.03364, allocations: 119.2 kB / 302.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000994/0.03463, allocations: 0.7288 MB / 303.4 MB, free: 6.703 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.03463, allocations: 256 / 303.4 MB, free: 6.703 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006/0.03523, allocations: 0.525 MB / 303.9 MB, free: 6.152 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004507/0.03568, allocations: 138.2 kB / 304 MB, free: 6.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002093/0.03778, allocations: 1.686 MB / 305.7 MB, free: 4.297 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001189/0.0379, allocations: 179.3 kB / 305.9 MB, free: 4.102 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002409/0.03814, allocations: 85.11 kB / 306 MB, free: 4.016 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000344/0.03848, allocations: 238.1 kB / 306.2 MB, free: 3.781 MB / 282.7 MB Notification: Performance of SimCode: time 1.172e-06/0.03848, allocations: 0 / 306.2 MB, free: 3.781 MB / 282.7 MB Notification: Performance of Templates: time 0.01475/0.05323, allocations: 12 MB / 318.2 MB, free: 7.977 MB / 298.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.0109481289982796]