Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.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.00104/0.00104, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001155/0.001155, allocations: 170.1 kB / 25.75 MB, free: 8.59 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9923/0.9923, allocations: 158.6 MB / 187.5 MB, free: 2.953 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5042,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5042,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.777e-05/2.953e-05, allocations: 2.312 kB / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.006246/0.006276, allocations: 4.612 MB / 255.7 MB, free: 3.156 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002846/0.009122, allocations: 1.249 MB / 257 MB, free: 1.898 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004932/0.009615, allocations: 15.94 kB / 257 MB, free: 1.883 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003209/0.009936, allocations: 114.8 kB / 257.1 MB, free: 1.77 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005932/0.01053, allocations: 269.5 kB / 257.4 MB, free: 1.504 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007816/0.01131, allocations: 303.4 kB / 257.7 MB, free: 1.207 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001343/0.01265, allocations: 1.087 MB / 258.8 MB, free: 116 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004797/0.01313, allocations: 182.8 kB / 258.9 MB, free: 15.92 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001023/0.01416, allocations: 0.5925 MB / 259.5 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005387/0.01469, allocations: 351 kB / 259.9 MB, free: 14.98 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001405/0.01484, allocations: 92 kB / 260 MB, free: 14.89 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.01506, allocations: 112 kB / 260.1 MB, free: 14.78 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.01523, allocations: 203.2 kB / 260.3 MB, free: 14.58 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003684/0.01559, allocations: 307.3 kB / 260.6 MB, free: 14.28 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001056/0.01665, allocations: 0.6929 MB / 261.3 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.01666, allocations: 0 / 261.3 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.01666, allocations: 0 / 261.3 MB, free: 13.59 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.01667, allocations: 4 kB / 261.3 MB, free: 13.58 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002164/0.01884, allocations: 1.227 MB / 262.5 MB, free: 12.3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/0.01889, allocations: 15.98 kB / 262.5 MB, free: 12.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000259/0.01915, allocations: 140.4 kB / 262.6 MB, free: 12.15 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006999/0.01985, allocations: 410.1 kB / 263 MB, free: 11.72 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.845e-05/0.0199, allocations: 45.69 kB / 263.1 MB, free: 11.68 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.02002, allocations: 64.38 kB / 263.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.02114, allocations: 0.5899 MB / 263.7 MB, free: 10.99 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.231e-05/0.02116, allocations: 192 / 263.7 MB, free: 10.99 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.832e-05/0.02123, allocations: 24.38 kB / 263.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/0.02126, allocations: 19.94 kB / 263.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007601/0.02202, allocations: 311.6 kB / 264.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003578/0.02559, allocations: 1.722 MB / 265.8 MB, free: 8.844 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007102/0.02631, allocations: 333.6 kB / 266.1 MB, free: 8.508 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002987/0.0266, allocations: 153.1 kB / 266.3 MB, free: 8.352 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.579e-05/0.02666, allocations: 16.48 kB / 266.3 MB, free: 8.336 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006013/0.02726, allocations: 420.1 kB / 266.7 MB, free: 7.863 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 3.747e-06/0.02726, allocations: 0 / 266.7 MB, free: 7.863 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.02592/0.05318, allocations: 9.799 MB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.505e-05/0.05326, allocations: 149.4 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004158/0.05367, allocations: 0.4985 MB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.656e-05/0.05375, allocations: 45.7 kB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.05395, allocations: 415.5 kB / 277.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002041/0.05416, allocations: 329.2 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.0544, allocations: 188.2 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.05457, allocations: 0.5508 MB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004932/0.05506, allocations: 341.2 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006347/0.0557, allocations: 0.6984 MB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.05675, allocations: 0.9294 MB / 280.6 MB, free: 9.551 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.05675, allocations: 4 kB / 280.6 MB, free: 9.547 MB / 266.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.0115/0.06826, allocations: 3.498 MB / 284.1 MB, free: 6 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.725e-05/0.06831, allocations: 59.41 kB / 284.2 MB, free: 5.93 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/0.06833, allocations: 12.11 kB / 284.2 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01906/0.08739, allocations: 5.187 MB / 289.4 MB, free: 0.7148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004206/0.08781, allocations: 115.8 kB / 289.5 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0039/0.09171, allocations: 2.649 MB / 292.1 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008995/0.09261, allocations: 123.8 kB / 292.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-05/0.0927, allocations: 43.97 kB / 292.3 MB, free: 13.72 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0003098/0.09301, allocations: 212.5 kB / 292.5 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.09321, allocations: 103.5 kB / 292.6 MB, free: 13.4 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01037/0.1036, allocations: 3.173 MB / 295.8 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.1036, allocations: 11.94 kB / 295.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.1036, allocations: 4 kB / 295.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.745e-05/0.1036, allocations: 11.97 kB / 295.8 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000969/0.1046, allocations: 0.6595 MB / 296.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.693e-06/0.1046, allocations: 3.984 kB / 296.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.1048, allocations: 55.95 kB / 296.5 MB, free: 9.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01616/0.121, allocations: 5.148 MB / 301.7 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/0.1211, allocations: 31.91 kB / 301.7 MB, free: 4.234 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/0.1236, allocations: 2.58 MB / 304.3 MB, free: 1.59 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1236, allocations: 4 kB / 304.3 MB, free: 1.586 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008598/0.1322, allocations: 3.483 MB / 307.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.1323, allocations: 67.55 kB / 307.8 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/0.1324, allocations: 20 kB / 307.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004904/0.1329, allocations: 103.9 kB / 308 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.1331, allocations: 88.83 kB / 308.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.124e-05/0.1331, allocations: 31.98 kB / 308.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002385/0.1334, allocations: 334.8 kB / 308.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1334, allocations: 0 / 308.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000534/0.1339, allocations: 255.9 kB / 308.7 MB, free: 13.19 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002029/0.1341, allocations: 131.2 kB / 308.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002255/0.1363, allocations: 1.302 MB / 310.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1363, allocations: 384 / 310.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001182/0.1375, allocations: 0.6611 MB / 310.8 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.138, allocations: 154.2 kB / 310.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/0.1404, allocations: 1.449 MB / 312.4 MB, free: 9.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.558e-05/0.1404, allocations: 156 kB / 312.5 MB, free: 9.234 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001467/0.1406, allocations: 57.97 kB / 312.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-05/0.1407, allocations: 36.5 kB / 312.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1407, allocations: 0 / 312.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of Templates: time 0.01886/0.1595, allocations: 18.93 MB / 331.5 MB, free: 6.176 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.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.5913013310637325]