Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001198/0.001198, allocations: 115.7 kB / 19.18 MB, free: 3.906 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.001338/0.001338, allocations: 201 kB / 22.12 MB, free: 0.9648 MB / 14.72 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 1.463/1.463, allocations: 230.2 MB / 255.1 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] 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.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002067/0.002067, allocations: 63.89 kB / 374.5 MB, free: 9.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1066, allocations: 53.32 MB / 427.8 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003072/0.1097, allocations: 1.498 MB / 429.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008583/0.1106, allocations: 283.1 kB / 429.6 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.1107, allocations: 8 kB / 429.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.1108, allocations: 23.73 kB / 429.6 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.427e-05/0.1109, allocations: 11.81 kB / 429.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004763/0.1114, allocations: 119.8 kB / 429.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.1118, allocations: 251.6 kB / 430 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000306/0.1121, allocations: 138.4 kB / 430.1 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.1122, allocations: 95.62 kB / 430.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.1124, allocations: 91.61 kB / 430.3 MB, free: 2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.1124, allocations: 20 kB / 430.3 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.215e-05/0.1125, allocations: 27.98 kB / 430.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.632e-05/0.1126, allocations: 59.83 kB / 430.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.1127, allocations: 91.53 kB / 430.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.113, allocations: 243 kB / 430.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.113, allocations: 3.938 kB / 430.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.113, allocations: 0 / 430.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.113, allocations: 0 / 430.7 MB, free: 1.562 MB / 350.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.0008716/0.1139, allocations: 494.3 kB / 431.2 MB, free: 1.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.114, allocations: 12.03 kB / 431.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002612/0.1142, allocations: 28.83 kB / 431.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.1146, allocations: 224 kB / 431.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.396e-05/0.1146, allocations: 24.94 kB / 431.5 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.1147, allocations: 24.38 kB / 431.5 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004671/0.1152, allocations: 240 kB / 431.8 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1152, allocations: 192 / 431.8 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/0.1152, allocations: 15.94 kB / 431.8 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.1152, allocations: 4 kB / 431.8 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003229/0.1155, allocations: 157.6 kB / 431.9 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.1167, allocations: 0.6936 MB / 432.6 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.117, allocations: 158.8 kB / 432.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.1171, allocations: 71.77 kB / 432.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.1171, allocations: 4 kB / 432.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002023/0.1173, allocations: 119.3 kB / 433 MB, free: 15.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.923e-06/0.1173, allocations: 0 / 433 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004503/0.1178, allocations: 221.3 kB / 433.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.236e-05/0.1178, allocations: 59.39 kB / 433.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.118, allocations: 142 kB / 433.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.988e-05/0.118, allocations: 37.7 kB / 433.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.837e-05/0.1181, allocations: 132.8 kB / 433.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.718e-05/0.1182, allocations: 63.53 kB / 433.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.1183, allocations: 77.95 kB / 433.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1184, allocations: 322.8 kB / 434 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.1185, allocations: 68.62 kB / 434.1 MB, free: 13.99 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001656/0.1187, allocations: 128.1 kB / 434.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.119, allocations: 174.6 kB / 434.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.119, allocations: 0 / 434.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003879/0.1194, allocations: 245.4 kB / 434.6 MB, free: 13.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.1194, allocations: 8 kB / 434.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.1194, allocations: 0 / 434.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.101e-05/0.1194, allocations: 4 kB / 434.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.1195, allocations: 31.92 kB / 434.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.396e-05/0.1196, allocations: 7.984 kB / 434.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001023/0.1197, allocations: 31.77 kB / 434.7 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.1197, allocations: 12 kB / 434.7 MB, free: 13.31 MB / 366.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.0001687/0.1199, allocations: 157.8 kB / 434.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.605e-05/0.1199, allocations: 15.89 kB / 434.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.411e-05/0.1199, allocations: 20.83 kB / 434.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.1199, allocations: 4 kB / 434.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1199, allocations: 0 / 434.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1199, allocations: 0 / 434.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000747/0.1207, allocations: 0.5498 MB / 435.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.1207, allocations: 0 / 435.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.392e-05/0.1208, allocations: 19.92 kB / 435.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.1208, allocations: 4 kB / 435.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.1208, allocations: 8 kB / 435.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.1208, allocations: 0 / 435.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1208, allocations: 0 / 435.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.1211, allocations: 271.8 kB / 435.7 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.726e-05/0.1212, allocations: 92.98 kB / 435.8 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.1212, allocations: 4 kB / 435.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.44e-05/0.1213, allocations: 8 kB / 435.8 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.117e-05/0.1214, allocations: 27.97 kB / 435.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.324e-05/0.1214, allocations: 7.938 kB / 435.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.934e-05/0.1215, allocations: 98.52 kB / 436 MB, free: 11.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1215, allocations: 0 / 436 MB, free: 11.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.1218, allocations: 51.84 kB / 436 MB, free: 11.89 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001261/0.1219, allocations: 111.4 kB / 436.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003331/0.1222, allocations: 172.1 kB / 436.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1222, allocations: 0 / 436.3 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.1223, allocations: 63.92 kB / 436.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002842/0.1226, allocations: 27.91 kB / 436.4 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006606/0.1233, allocations: 341.1 kB / 436.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003973/0.1237, allocations: 0.7285 MB / 437.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.505e-05/0.1238, allocations: 23.44 kB / 437.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1238, allocations: 0 / 437.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of Templates: time 0.005073/0.1288, allocations: 2.193 MB / 439.7 MB, free: 8.16 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 6.821470089955255]