Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.001036/0.001036, allocations: 76.48 kB / 9.933 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001144/0.00218, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006814/0.0006814, allocations: 148.9 kB / 11.25 MB, free: 2.93 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008929/0.001574, allocations: 459.6 kB / 11.69 MB, free: 2.477 MB / 13.93 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.9097/0.9097, allocations: 173.4 MB / 185.8 MB, free: 8.992 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08645/0.9961, allocations: 52.5 MB / 238.3 MB, free: 4.43 MB / 234.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.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 3.938 kB / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.386e-05/2.538e-05, allocations: 2.875 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.005949/0.005974, allocations: 4.816 MB / 244.4 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003022/0.008996, allocations: 1.306 MB / 245.7 MB, free: 13 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004659/0.009462, allocations: 15.94 kB / 245.7 MB, free: 12.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002848/0.009747, allocations: 126.7 kB / 245.8 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005785/0.01033, allocations: 281.4 kB / 246.1 MB, free: 12.58 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007592/0.01108, allocations: 303.4 kB / 246.4 MB, free: 12.29 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001447/0.01253, allocations: 1.138 MB / 247.6 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003393/0.01287, allocations: 192.9 kB / 247.7 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.01391, allocations: 0.6811 MB / 248.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005914/0.01451, allocations: 370.9 kB / 248.8 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001875/0.01469, allocations: 92 kB / 248.9 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002545/0.01495, allocations: 123.9 kB / 249 MB, free: 9.676 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.01508, allocations: 147.4 kB / 249.1 MB, free: 9.531 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003084/0.01539, allocations: 255.5 kB / 249.4 MB, free: 9.281 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000754/0.01615, allocations: 0.6306 MB / 250 MB, free: 8.648 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.201e-05/0.01617, allocations: 0 / 250 MB, free: 8.648 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.01617, allocations: 0 / 250 MB, free: 8.648 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.782e-05/0.01621, allocations: 0 / 250 MB, free: 8.648 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002345/0.01855, allocations: 1.336 MB / 251.4 MB, free: 7.27 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.01859, allocations: 12.03 kB / 251.4 MB, free: 7.258 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001723/0.01876, allocations: 104.8 kB / 251.5 MB, free: 7.156 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005232/0.01928, allocations: 349.4 kB / 251.8 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.252e-05/0.01933, allocations: 49.69 kB / 251.9 MB, free: 6.738 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.006e-05/0.01942, allocations: 64.38 kB / 251.9 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007484/0.02016, allocations: 0.5742 MB / 252.5 MB, free: 6.062 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.02018, allocations: 192 / 252.5 MB, free: 6.062 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.545e-05/0.02023, allocations: 24.38 kB / 252.5 MB, free: 6.039 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.75e-05/0.02025, allocations: 19.94 kB / 252.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00041/0.02066, allocations: 226.2 kB / 252.8 MB, free: 5.797 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002531/0.02319, allocations: 1.461 MB / 254.2 MB, free: 4.273 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004545/0.02364, allocations: 260.4 kB / 254.5 MB, free: 4.008 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.02381, allocations: 114.3 kB / 254.6 MB, free: 3.895 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-05/0.02385, allocations: 8.5 kB / 254.6 MB, free: 3.887 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004035/0.02426, allocations: 398.9 kB / 255 MB, free: 3.441 MB / 250.7 MB Notification: Performance of pre-optimization done (n=54): time 2.424e-06/0.02426, allocations: 0 / 255 MB, free: 3.441 MB / 250.7 MB Notification: Performance of matching and sorting (n=94): time 0.02976/0.05401, allocations: 10.79 MB / 265.8 MB, free: 8.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.05406, allocations: 68.34 kB / 265.8 MB, free: 8.504 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003268/0.05439, allocations: 486.9 kB / 266.3 MB, free: 8.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.523e-05/0.05447, allocations: 41.7 kB / 266.4 MB, free: 7.973 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001478/0.05462, allocations: 337.9 kB / 266.7 MB, free: 7.633 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.05481, allocations: 325.2 kB / 267 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002007/0.05501, allocations: 182.4 kB / 267.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.05512, allocations: 398.6 kB / 267.6 MB, free: 6.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002704/0.05539, allocations: 237.6 kB / 267.8 MB, free: 6.488 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003693/0.05576, allocations: 0.5536 MB / 268.4 MB, free: 5.816 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006527/0.05641, allocations: 0.7479 MB / 269.1 MB, free: 4.969 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.05642, allocations: 4 kB / 269.1 MB, free: 4.965 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.006748/0.06317, allocations: 3.108 MB / 272.2 MB, free: 1.816 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.251e-05/0.06323, allocations: 67.52 kB / 272.3 MB, free: 1.738 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.06324, allocations: 8 kB / 272.3 MB, free: 1.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.123/0.1862, allocations: 5.021 MB / 277.3 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004373/0.1867, allocations: 134.1 kB / 277.4 MB, free: 22.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.1967, allocations: 5.323 MB / 282.8 MB, free: 20.65 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007757/0.1975, allocations: 119.8 kB / 282.9 MB, free: 20.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-05/0.1976, allocations: 44.11 kB / 282.9 MB, free: 20.65 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (54): * Single equations (assignments): 50 * 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): 1 system {(5,32,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002234/0.1978, allocations: 175.1 kB / 283.1 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.198, allocations: 84.56 kB / 283.2 MB, free: 20.53 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007729/0.2057, allocations: 2.821 MB / 286 MB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.369e-05/0.2057, allocations: 10 kB / 286 MB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.2057, allocations: 6.438 kB / 286 MB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.2057, allocations: 3.469 kB / 286 MB, free: 20.39 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006345/0.2064, allocations: 0.5191 MB / 286.5 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.752e-06/0.2064, allocations: 0 / 286.5 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002295/0.2066, allocations: 74.97 kB / 286.6 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.581e-05/0.2067, allocations: 68.41 kB / 286.7 MB, free: 20.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01416/0.2208, allocations: 4.994 MB / 291.7 MB, free: 18.72 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.09e-05/0.2209, allocations: 24.72 kB / 291.7 MB, free: 18.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009062/0.23, allocations: 5.29 MB / 297 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.23, allocations: 7 kB / 297 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007782/0.2378, allocations: 3.018 MB / 300 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.2379, allocations: 27.5 kB / 300 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005472/0.2385, allocations: 108.8 kB / 300.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003069/0.2388, allocations: 116.5 kB / 300.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.651e-05/0.2388, allocations: 19.98 kB / 300.3 MB, free: 10.57 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001797/0.239, allocations: 213.1 kB / 300.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.239, allocations: 0 / 300.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009971/0.24, allocations: 355.4 kB / 300.8 MB, free: 10.04 MB / 266.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): 1 system {(5,32,76.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002198/0.2402, allocations: 114.6 kB / 300.9 MB, free: 9.918 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001926/0.2421, allocations: 1.303 MB / 302.2 MB, free: 8.605 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.53e-05/0.2422, allocations: 20.47 kB / 302.3 MB, free: 8.594 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.2434, allocations: 0.8125 MB / 303.1 MB, free: 7.789 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004985/0.2439, allocations: 222.6 kB / 303.3 MB, free: 7.578 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005181/0.2491, allocations: 1.486 MB / 304.8 MB, free: 6.105 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.2492, allocations: 180.6 kB / 305 MB, free: 5.91 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001879/0.2494, allocations: 59.31 kB / 305 MB, free: 5.852 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.2496, allocations: 165.3 kB / 305.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of SimCode: time 2.445e-06/0.2496, allocations: 0 / 305.2 MB, free: 5.691 MB / 266.7 MB Notification: Performance of Templates: time 0.03105/0.2807, allocations: 30.28 MB / 335.5 MB, free: 7.688 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.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.492492019198835]