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.001772/0.001772, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 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.002121/0.002121, allocations: 165.3 kB / 24.5 MB, free: 3.453 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.453/1.453, allocations: 177.1 MB / 204.7 MB, free: 9.004 MB / 190.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.001872/0.001872, allocations: 60.25 kB / 325.5 MB, free: 212 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1131, allocations: 53.39 MB / 378.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003175/0.1162, allocations: 1.477 MB / 380.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008207/0.1171, allocations: 283.2 kB / 380.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.1172, allocations: 4 kB / 380.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001706/0.1173, allocations: 23.69 kB / 380.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.882e-05/0.1174, allocations: 15.8 kB / 380.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004881/0.1179, allocations: 115.8 kB / 380.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003845/0.1183, allocations: 267.5 kB / 381.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003313/0.1186, allocations: 138.8 kB / 381.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.1187, allocations: 87.7 kB / 381.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001611/0.1189, allocations: 83.59 kB / 381.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.942e-05/0.1189, allocations: 20 kB / 381.4 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.289e-05/0.119, allocations: 24 kB / 381.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.777e-05/0.1191, allocations: 59.78 kB / 381.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.1192, allocations: 75.64 kB / 381.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003304/0.1195, allocations: 247 kB / 381.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1195, allocations: 0 / 381.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1195, allocations: 4 kB / 381.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.1195, allocations: 0 / 381.8 MB, free: 12.59 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.0007174/0.1203, allocations: 417 kB / 382.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.1203, allocations: 11.98 kB / 382.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002292/0.1205, allocations: 24.84 kB / 382.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000305/0.1208, allocations: 166.3 kB / 382.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.867e-05/0.1209, allocations: 24.86 kB / 382.4 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.1209, allocations: 28.38 kB / 382.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004708/0.1214, allocations: 239.3 kB / 382.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.1214, allocations: 192 / 382.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.1214, allocations: 11.94 kB / 382.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.1214, allocations: 11.94 kB / 382.7 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003267/0.1218, allocations: 153.9 kB / 382.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.1228, allocations: 0.5738 MB / 383.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.1231, allocations: 154.5 kB / 383.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001192/0.1232, allocations: 68.72 kB / 383.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.1232, allocations: 4 kB / 383.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001974/0.1234, allocations: 125.3 kB / 383.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.1234, allocations: 0 / 383.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.000437/0.1239, allocations: 214.2 kB / 384 MB, free: 10.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.1239, allocations: 55.41 kB / 384 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001456/0.1241, allocations: 157.8 kB / 384.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.633e-05/0.1241, allocations: 37.7 kB / 384.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001042/0.1242, allocations: 132.9 kB / 384.3 MB, free: 9.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.801e-05/0.1243, allocations: 63.48 kB / 384.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.554e-05/0.1244, allocations: 70.02 kB / 384.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1245, allocations: 330.8 kB / 384.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1247, allocations: 68.62 kB / 384.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.1248, allocations: 124.1 kB / 385 MB, free: 9.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.1251, allocations: 170.6 kB / 385.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1251, allocations: 0 / 385.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003595/0.1254, allocations: 249.3 kB / 385.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.1254, allocations: 4 kB / 385.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1254, allocations: 11.94 kB / 385.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1255, allocations: 4 kB / 385.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000132/0.1256, allocations: 27.92 kB / 385.4 MB, free: 8.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.1256, allocations: 7.984 kB / 385.5 MB, free: 8.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.129e-05/0.1257, allocations: 23.84 kB / 385.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.228e-05/0.1257, allocations: 12 kB / 385.5 MB, free: 8.645 MB / 350.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.0001494/0.1259, allocations: 161.9 kB / 385.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.51e-05/0.1259, allocations: 15.84 kB / 385.7 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.025e-05/0.1259, allocations: 20.94 kB / 385.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1259, allocations: 0 / 385.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1259, allocations: 0 / 385.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.126, allocations: 7.984 kB / 385.7 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006747/0.1266, allocations: 474.8 kB / 386.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1266, allocations: 0 / 386.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.621e-05/0.1267, allocations: 15.94 kB / 386.2 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1267, allocations: 4 kB / 386.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.715e-05/0.1267, allocations: 11.98 kB / 386.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1267, allocations: 3.938 kB / 386.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1267, allocations: 0 / 386.2 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.127, allocations: 271.9 kB / 386.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.029e-05/0.1271, allocations: 15.84 kB / 386.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.1271, allocations: 7.984 kB / 386.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.313e-05/0.1272, allocations: 4 kB / 386.5 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.659e-05/0.1272, allocations: 23.95 kB / 386.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.1272, allocations: 8 kB / 386.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.036e-05/0.1273, allocations: 106.5 kB / 386.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1273, allocations: 0 / 386.6 MB, free: 7.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.1276, allocations: 47.89 kB / 386.7 MB, free: 7.406 MB / 350.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.0001084/0.1277, allocations: 103.2 kB / 386.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.128, allocations: 159.8 kB / 386.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.128, allocations: 0 / 386.9 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.1281, allocations: 75.77 kB / 387 MB, free: 7.066 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.1284, allocations: 24.31 kB / 387 MB, free: 7.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005414/0.1289, allocations: 319.6 kB / 387.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001172/0.1291, allocations: 116.5 kB / 387.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.867e-05/0.1291, allocations: 25.94 kB / 387.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.628e-05/0.1292, allocations: 24.5 kB / 387.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1292, allocations: 0 / 387.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of Templates: time 0.004771/0.134, allocations: 1.705 MB / 389.2 MB, free: 4.84 MB / 350.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 -s ida -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: 4.39586168306414]