Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001002/0.001002, allocations: 88.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 165.1 kB / 24.91 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9253/0.9253, allocations: 177 MB / 205.2 MB, free: 5.078 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|HeatCapacitor1.T",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.272e-06/1.272e-06, allocations: 0 / 273.4 MB, free: 1.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.277e-05/2.405e-05, allocations: 5.266 kB / 273.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.004119/0.004143, allocations: 4.785 MB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.006199, allocations: 1.314 MB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003388/0.006537, allocations: 15.94 kB / 279.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002468/0.006784, allocations: 126.7 kB / 279.6 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000379/0.007163, allocations: 273.4 kB / 279.9 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005823/0.007745, allocations: 315.4 kB / 280.2 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007814/0.008527, allocations: 1.134 MB / 281.4 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.008765, allocations: 196.9 kB / 281.5 MB, free: 8.867 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005873/0.009352, allocations: 0.6119 MB / 282.2 MB, free: 8.254 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003368/0.009689, allocations: 375 kB / 282.5 MB, free: 7.887 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.183e-05/0.009781, allocations: 88 kB / 282.6 MB, free: 7.801 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001415/0.009922, allocations: 116 kB / 282.7 MB, free: 7.688 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.01003, allocations: 207.2 kB / 282.9 MB, free: 7.484 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.01023, allocations: 315.3 kB / 283.2 MB, free: 7.176 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005639/0.0108, allocations: 0.7201 MB / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.0108, allocations: 0 / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.0108, allocations: 0 / 284 MB, free: 6.453 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.01081, allocations: 3.938 kB / 284 MB, free: 6.449 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: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.001276/0.01209, allocations: 1.161 MB / 285.1 MB, free: 5.242 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.906e-05/0.01212, allocations: 11.98 kB / 285.1 MB, free: 5.23 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001215/0.01224, allocations: 116.8 kB / 285.2 MB, free: 5.117 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.01259, allocations: 345.5 kB / 285.6 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.784e-05/0.01262, allocations: 53.62 kB / 285.6 MB, free: 4.703 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.704e-05/0.01268, allocations: 64.38 kB / 285.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004862/0.01317, allocations: 0.5664 MB / 286.3 MB, free: 4.031 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.01319, allocations: 4.188 kB / 286.3 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.48e-05/0.01322, allocations: 24.38 kB / 286.3 MB, free: 4.004 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.01323, allocations: 19.94 kB / 286.3 MB, free: 3.984 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002716/0.0135, allocations: 218.3 kB / 286.5 MB, free: 3.773 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001658/0.01516, allocations: 1.465 MB / 288 MB, free: 2.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.01547, allocations: 256.4 kB / 288.2 MB, free: 1.988 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001295/0.0156, allocations: 122.2 kB / 288.4 MB, free: 1.867 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.01563, allocations: 8.5 kB / 288.4 MB, free: 1.859 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.01593, allocations: 414.8 kB / 288.8 MB, free: 1.398 MB / 266.7 MB Notification: Performance of pre-optimization done (n=54): time 1.833e-06/0.01593, allocations: 0 / 288.8 MB, free: 1.398 MB / 266.7 MB Notification: Performance of matching and sorting (n=94): time 0.1261/0.142, allocations: 10.67 MB / 299.4 MB, free: 24.69 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.1421, allocations: 141.5 kB / 299.6 MB, free: 24.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003584/0.1425, allocations: 483.6 kB / 300.1 MB, free: 24.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.1426, allocations: 44.52 kB / 300.1 MB, free: 24.31 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.1427, allocations: 336.7 kB / 300.4 MB, free: 24.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.1429, allocations: 326.5 kB / 300.7 MB, free: 23.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001895/0.143, allocations: 185 kB / 300.9 MB, free: 23.85 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.965e-05/0.1431, allocations: 398 kB / 301.3 MB, free: 23.51 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.1434, allocations: 236.7 kB / 301.5 MB, free: 23.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.1437, allocations: 0.5498 MB / 302.1 MB, free: 23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005752/0.1443, allocations: 0.7531 MB / 302.8 MB, free: 22.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.1443, allocations: 3.812 kB / 302.9 MB, free: 22.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.006149/0.1504, allocations: 3.096 MB / 305.9 MB, free: 19.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.647e-05/0.1505, allocations: 67.02 kB / 306 MB, free: 19.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.1505, allocations: 4 kB / 306 MB, free: 19.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01116/0.1616, allocations: 5.023 MB / 311 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.1619, allocations: 123.7 kB / 311.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007584/0.1695, allocations: 5.292 MB / 316.5 MB, free: 9.734 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006426/0.1701, allocations: 123.9 kB / 316.6 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.313e-05/0.1702, allocations: 35.97 kB / 316.6 MB, free: 9.578 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.0002145/0.1704, allocations: 177.3 kB / 316.8 MB, free: 9.398 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.1705, allocations: 83.92 kB / 316.9 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005755/0.1763, allocations: 2.821 MB / 319.7 MB, free: 6.496 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.1763, allocations: 12 kB / 319.7 MB, free: 6.484 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.1763, allocations: 4 kB / 319.7 MB, free: 6.48 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.1763, allocations: 3.984 kB / 319.7 MB, free: 6.477 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006846/0.177, allocations: 0.5218 MB / 320.2 MB, free: 5.984 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/0.177, allocations: 3.938 kB / 320.2 MB, free: 5.98 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001609/0.1772, allocations: 55.89 kB / 320.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01074/0.1879, allocations: 4.985 MB / 325.3 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.188, allocations: 19.98 kB / 325.3 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008211/0.1962, allocations: 5.272 MB / 330.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1962, allocations: 0 / 330.6 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006607/0.2028, allocations: 3.006 MB / 333.6 MB, free: 8.621 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001483/0.203, allocations: 67.42 kB / 333.6 MB, free: 8.555 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.887e-05/0.2031, allocations: 19.98 kB / 333.7 MB, free: 8.535 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004387/0.2035, allocations: 111.9 kB / 333.8 MB, free: 8.426 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002783/0.2038, allocations: 116.7 kB / 333.9 MB, free: 8.312 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.51e-05/0.2038, allocations: 23.98 kB / 333.9 MB, free: 8.289 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001595/0.204, allocations: 204.8 kB / 334.1 MB, free: 8.109 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.204, allocations: 0 / 334.1 MB, free: 8.109 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008137/0.2048, allocations: 360 kB / 334.5 MB, free: 7.758 MB / 282.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.0002/0.205, allocations: 111.6 kB / 334.6 MB, free: 7.645 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001978/0.207, allocations: 1.306 MB / 335.9 MB, free: 6.293 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/0.207, allocations: 8 kB / 335.9 MB, free: 6.285 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.2081, allocations: 0.8089 MB / 336.7 MB, free: 5.473 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003992/0.2085, allocations: 143.8 kB / 336.8 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.2105, allocations: 1.455 MB / 338.3 MB, free: 3.855 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000144/0.2106, allocations: 188.5 kB / 338.5 MB, free: 3.652 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001892/0.2108, allocations: 58.78 kB / 338.5 MB, free: 3.598 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/0.2111, allocations: 181.2 kB / 338.7 MB, free: 3.426 MB / 282.7 MB Notification: Performance of SimCode: time 1.302e-06/0.2111, allocations: 0 / 338.7 MB, free: 3.426 MB / 282.7 MB Notification: Performance of Templates: time 0.03114/0.2422, allocations: 29.77 MB / 368.5 MB, free: 5.898 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.388770131394267]