Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.002042/0.002042, allocations: 99.53 kB / 21.73 MB, free: 2.691 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.002011/0.002011, allocations: 167.4 kB / 25.03 MB, free: 8.41 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 1.392/1.392, allocations: 158.6 MB / 186.8 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 178] 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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5037,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5037,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 250.4 MB, free: 7.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.17e-05/3.305e-05, allocations: 2.312 kB / 250.4 MB, free: 7.824 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.00678/0.006813, allocations: 4.573 MB / 254.9 MB, free: 3.223 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002577/0.00939, allocations: 1.233 MB / 256.2 MB, free: 1.98 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/0.009665, allocations: 19.94 kB / 256.2 MB, free: 1.961 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.009987, allocations: 114.8 kB / 256.3 MB, free: 1.848 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005769/0.01056, allocations: 269.5 kB / 256.6 MB, free: 1.582 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007542/0.01132, allocations: 303.4 kB / 256.9 MB, free: 1.285 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.001197/0.01251, allocations: 1.087 MB / 258 MB, free: 196 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000344/0.01286, allocations: 170.9 kB / 258.1 MB, free: 8 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007666/0.01363, allocations: 0.5925 MB / 258.7 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005328/0.01416, allocations: 363 kB / 259.1 MB, free: 15.06 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.0143, allocations: 91.94 kB / 259.2 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002475/0.01455, allocations: 119.9 kB / 259.3 MB, free: 14.85 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002099/0.01476, allocations: 195.3 kB / 259.5 MB, free: 14.66 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003738/0.01513, allocations: 307.3 kB / 259.8 MB, free: 14.36 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.0166, allocations: 1.055 MB / 260.8 MB, free: 13.3 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.0166, allocations: 0 / 260.8 MB, free: 13.3 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.0166, allocations: 3.938 kB / 260.8 MB, free: 13.3 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.01661, allocations: 0 / 260.8 MB, free: 13.3 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.002626/0.01924, allocations: 1.27 MB / 262.1 MB, free: 11.97 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.01929, allocations: 11.98 kB / 262.1 MB, free: 11.96 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002517/0.01954, allocations: 140.4 kB / 262.2 MB, free: 11.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007164/0.02026, allocations: 422 kB / 262.7 MB, free: 11.39 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/0.02031, allocations: 45.69 kB / 262.7 MB, free: 11.34 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.02043, allocations: 68.38 kB / 262.8 MB, free: 11.28 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.02179, allocations: 0.7142 MB / 263.5 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.02181, allocations: 8.109 kB / 263.5 MB, free: 10.52 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-05/0.02188, allocations: 24.38 kB / 263.5 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.2e-05/0.0219, allocations: 19.94 kB / 263.5 MB, free: 10.48 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001421/0.02332, allocations: 0.5947 MB / 264.1 MB, free: 9.879 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003886/0.02721, allocations: 1.959 MB / 266.1 MB, free: 7.844 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001287/0.0285, allocations: 0.5205 MB / 266.6 MB, free: 7.316 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006077/0.0291, allocations: 277 kB / 266.9 MB, free: 7.043 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.632e-05/0.02918, allocations: 16.48 kB / 266.9 MB, free: 7.027 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.03024, allocations: 0.539 MB / 267.4 MB, free: 6.422 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 2.205e-06/0.03024, allocations: 0 / 267.4 MB, free: 6.422 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.05934/0.08959, allocations: 11.8 MB / 279.2 MB, free: 10.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.08974, allocations: 153.4 kB / 279.4 MB, free: 10.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009144/0.09065, allocations: 0.6196 MB / 280 MB, free: 9.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000238/0.09089, allocations: 41.7 kB / 280 MB, free: 9.703 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000434/0.09132, allocations: 443.5 kB / 280.5 MB, free: 9.262 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003946/0.09172, allocations: 337.2 kB / 280.8 MB, free: 8.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004625/0.09218, allocations: 212.2 kB / 281 MB, free: 8.715 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004728/0.09265, allocations: 0.5899 MB / 281.6 MB, free: 8.113 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/0.09431, allocations: 0.6807 MB / 282.3 MB, free: 7.418 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002055/0.09636, allocations: 1.069 MB / 283.4 MB, free: 6.211 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003596/0.09996, allocations: 1.617 MB / 285 MB, free: 4.488 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.09997, allocations: 4 kB / 285 MB, free: 4.484 MB / 266.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02135/0.1213, allocations: 4.424 MB / 289.4 MB, free: 12 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.1214, allocations: 71.52 kB / 289.5 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.1215, allocations: 4 kB / 289.5 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03403/0.1555, allocations: 5.624 MB / 295.1 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006017/0.1561, allocations: 111.9 kB / 295.2 MB, free: 10.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00704/0.1631, allocations: 3.457 MB / 298.7 MB, free: 6.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.1646, allocations: 115.9 kB / 298.8 MB, free: 6.539 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/0.1647, allocations: 43.97 kB / 298.8 MB, free: 6.496 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.0005577/0.1652, allocations: 268.4 kB / 299.1 MB, free: 6.223 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.1655, allocations: 103.5 kB / 299.2 MB, free: 6.121 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0198/0.1853, allocations: 4.067 MB / 303.2 MB, free: 2.031 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.692e-05/0.1853, allocations: 11.94 kB / 303.3 MB, free: 2.02 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.1853, allocations: 4 kB / 303.3 MB, free: 2.016 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.64e-05/0.1854, allocations: 3.984 kB / 303.3 MB, free: 2.012 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.187, allocations: 0.8431 MB / 304.1 MB, free: 1.133 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.969e-06/0.187, allocations: 0 / 304.1 MB, free: 1.133 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000368/0.1874, allocations: 59.94 kB / 304.2 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0327/0.22, allocations: 5.57 MB / 309.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/0.2202, allocations: 27.97 kB / 309.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006561/0.2268, allocations: 3.458 MB / 313.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.2268, allocations: 0 / 313.2 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02214/0.249, allocations: 4.9 MB / 318.1 MB, free: 3.004 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002778/0.2492, allocations: 67.56 kB / 318.2 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001748/0.2494, allocations: 23.98 kB / 318.2 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.2505, allocations: 99.91 kB / 318.3 MB, free: 2.816 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003105/0.2508, allocations: 108.8 kB / 318.4 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.2509, allocations: 31.98 kB / 318.5 MB, free: 2.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005013/0.2514, allocations: 398.7 kB / 318.8 MB, free: 2.293 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2514, allocations: 4 kB / 318.8 MB, free: 2.289 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008273/0.2523, allocations: 256 kB / 319.1 MB, free: 2.039 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.0003073/0.2526, allocations: 131.2 kB / 319.2 MB, free: 1.898 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005643/0.2582, allocations: 1.92 MB / 321.1 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.2582, allocations: 0 / 321.1 MB, free: 15.94 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003306/0.2615, allocations: 0.9853 MB / 322.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008272/0.2624, allocations: 158 kB / 322.3 MB, free: 14.8 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003781/0.2661, allocations: 1.715 MB / 324 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003685/0.2665, allocations: 340.9 kB / 324.3 MB, free: 12.68 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002519/0.2668, allocations: 57.97 kB / 324.4 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.2669, allocations: 32.5 kB / 324.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.844e-06/0.2669, allocations: 0 / 324.4 MB, free: 12.59 MB / 314.7 MB Notification: Performance of Templates: time 0.03527/0.3022, allocations: 18.96 MB / 343.4 MB, free: 9.598 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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: 5.758429327048361]