Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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.001239/0.001239, allocations: 114 kB / 21.18 MB, free: 0.7422 MB / 14.72 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.00139/0.00139, allocations: 214.1 kB / 24.48 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.398/1.398, allocations: 230.4 MB / 258.1 MB, free: 8.156 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002712/0.002712, allocations: 67.83 kB / 378.7 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2523, allocations: 53.32 MB / 432 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002624/0.2549, allocations: 1.508 MB / 433.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006618/0.2556, allocations: 283.2 kB / 433.8 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.456e-05/0.2557, allocations: 4 kB / 433.8 MB, free: 5.598 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.2558, allocations: 23.73 kB / 433.8 MB, free: 5.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.467e-05/0.2558, allocations: 15.81 kB / 433.9 MB, free: 5.559 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003784/0.2562, allocations: 115.8 kB / 434 MB, free: 5.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003148/0.2565, allocations: 255.6 kB / 434.2 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002583/0.2568, allocations: 150.3 kB / 434.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000104/0.2569, allocations: 79.72 kB / 434.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.257, allocations: 99.58 kB / 434.5 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.625e-05/0.2571, allocations: 24 kB / 434.6 MB, free: 4.844 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.769e-05/0.2571, allocations: 24 kB / 434.6 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.101e-05/0.2572, allocations: 59.83 kB / 434.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.2573, allocations: 95.52 kB / 434.7 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.2576, allocations: 240.6 kB / 435 MB, free: 4.434 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.2576, allocations: 0 / 435 MB, free: 4.434 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2576, allocations: 0 / 435 MB, free: 4.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.2576, allocations: 4 kB / 435 MB, free: 4.43 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000692/0.2583, allocations: 494.2 kB / 435.5 MB, free: 3.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2584, allocations: 11.97 kB / 435.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002538/0.2586, allocations: 32.81 kB / 435.5 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002994/0.2589, allocations: 224.1 kB / 435.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.968e-05/0.2589, allocations: 16.94 kB / 435.7 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.384e-05/0.259, allocations: 32.36 kB / 435.8 MB, free: 3.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004188/0.2594, allocations: 240 kB / 436 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.2594, allocations: 4.125 kB / 436 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.792e-05/0.2594, allocations: 15.94 kB / 436 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.2595, allocations: 4 kB / 436 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003025/0.2598, allocations: 153.7 kB / 436.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/0.2608, allocations: 0.6897 MB / 436.9 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.2611, allocations: 150.8 kB / 437 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.2612, allocations: 68.83 kB / 437.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.2612, allocations: 4 kB / 437.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001961/0.2614, allocations: 127.2 kB / 437.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.2614, allocations: 4 kB / 437.2 MB, free: 2.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004254/0.2618, allocations: 212.9 kB / 437.4 MB, free: 1.809 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.2619, allocations: 59.41 kB / 437.5 MB, free: 1.738 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.262, allocations: 152.3 kB / 437.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.262, allocations: 37.7 kB / 437.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.475e-05/0.2621, allocations: 124.9 kB / 437.8 MB, free: 1.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.068e-05/0.2622, allocations: 71.47 kB / 437.9 MB, free: 1.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.2623, allocations: 70.02 kB / 437.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.2624, allocations: 334.8 kB / 438.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.2625, allocations: 64.62 kB / 438.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.2627, allocations: 128.1 kB / 438.4 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.263, allocations: 175.2 kB / 438.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.263, allocations: 0 / 438.6 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003852/0.2634, allocations: 249.3 kB / 438.9 MB, free: 276 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2634, allocations: 4 kB / 438.9 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.2634, allocations: 4 kB / 438.9 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.2634, allocations: 0 / 438.9 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.2635, allocations: 31.92 kB / 438.9 MB, free: 236 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.2635, allocations: 4 kB / 438.9 MB, free: 232 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.2636, allocations: 27.78 kB / 438.9 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.2637, allocations: 12 kB / 438.9 MB, free: 192 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001509/0.2638, allocations: 161.9 kB / 439.1 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.2638, allocations: 11.89 kB / 439.1 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.426e-05/0.2639, allocations: 20.91 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2639, allocations: 4 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.2639, allocations: 0 / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.082e-05/0.264, allocations: 92.95 kB / 439.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.264, allocations: 7.938 kB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.088e-05/0.2641, allocations: 7.984 kB / 439.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.286e-05/0.2641, allocations: 23.97 kB / 439.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003591/0.2645, allocations: 256.6 kB / 439.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003441/0.2648, allocations: 349.3 kB / 439.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001191/0.2649, allocations: 63.97 kB / 439.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.896e-05/0.265, allocations: 99.27 kB / 440 MB, free: 15.06 MB / 350.1 MB Notification: Performance of Backend: time 2.5e-07/0.265, allocations: 0 / 440 MB, free: 15.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005225/0.2655, allocations: 194.5 kB / 440.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of SimCode: time 0.0007622/0.2663, allocations: 0.7262 MB / 440.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of Templates: time 0.005528/0.2718, allocations: 1.965 MB / 442.9 MB, free: 12.14 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample.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: 4.200952680315822]