Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.00164/0.00164, allocations: 116.8 kB / 19.18 MB, free: 3.762 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.002067/0.002067, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.44/1.44, allocations: 230.2 MB / 255.2 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001792/0.001792, allocations: 67.89 kB / 374.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09824/0.1, allocations: 53.32 MB / 427.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002899/0.1029, allocations: 1.721 MB / 429.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000676/0.1036, allocations: 295.1 kB / 429.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.528e-05/0.1037, allocations: 4 kB / 429.8 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001306/0.1038, allocations: 27.67 kB / 429.8 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.922e-05/0.1039, allocations: 23.8 kB / 429.9 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00034/0.1042, allocations: 111.8 kB / 430 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003441/0.1046, allocations: 271.5 kB / 430.2 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002779/0.1048, allocations: 157.5 kB / 430.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.105, allocations: 91.7 kB / 430.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1051, allocations: 95.59 kB / 430.6 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.762e-05/0.1051, allocations: 27.98 kB / 430.6 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.506e-05/0.1052, allocations: 24 kB / 430.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.707e-05/0.1053, allocations: 63.77 kB / 430.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.1054, allocations: 103.5 kB / 430.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003209/0.1057, allocations: 262.9 kB / 431.1 MB, free: 1.234 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.1057, allocations: 0 / 431.1 MB, free: 1.234 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1057, allocations: 4 kB / 431.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.1057, allocations: 0 / 431.1 MB, free: 1.23 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007095/0.1064, allocations: 490.5 kB / 431.5 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.1065, allocations: 12.03 kB / 431.5 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002146/0.1067, allocations: 36.78 kB / 431.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.107, allocations: 228 kB / 431.8 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.092e-05/0.107, allocations: 24.92 kB / 431.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.196e-05/0.1071, allocations: 28.31 kB / 431.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004824/0.1075, allocations: 270.6 kB / 432.1 MB, free: 52 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.153e-05/0.1076, allocations: 4.188 kB / 432.1 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.1076, allocations: 11.94 kB / 432.1 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1076, allocations: 11.94 kB / 432.1 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003375/0.1079, allocations: 161.6 kB / 432.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.1091, allocations: 0.9596 MB / 433.3 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.1094, allocations: 155.9 kB / 433.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.1096, allocations: 77.62 kB / 433.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.203e-05/0.1096, allocations: 0 / 433.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000216/0.1098, allocations: 133.1 kB / 433.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.283e-06/0.1098, allocations: 0 / 433.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004508/0.1103, allocations: 217.3 kB / 433.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.385e-05/0.1103, allocations: 93.22 kB / 433.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.1105, allocations: 161.3 kB / 434.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.322e-05/0.1105, allocations: 37.7 kB / 434.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.1106, allocations: 148.6 kB / 434.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.686e-05/0.1107, allocations: 59.53 kB / 434.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.1108, allocations: 77.47 kB / 434.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1109, allocations: 334.8 kB / 434.7 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.1111, allocations: 67.97 kB / 434.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001861/0.1113, allocations: 136.3 kB / 434.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002833/0.1115, allocations: 196.3 kB / 435.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.1115, allocations: 0 / 435.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004094/0.1119, allocations: 257.3 kB / 435.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.112, allocations: 10.34 kB / 435.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.112, allocations: 0 / 435.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.112, allocations: 4 kB / 435.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.1121, allocations: 31.92 kB / 435.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1121, allocations: 4 kB / 435.4 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.1123, allocations: 40.05 kB / 435.5 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.91e-05/0.1123, allocations: 12 kB / 435.5 MB, free: 12.48 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0001539/0.1124, allocations: 161.7 kB / 435.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.523e-05/0.1125, allocations: 11.91 kB / 435.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.042e-05/0.1125, allocations: 28.77 kB / 435.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1125, allocations: 4 kB / 435.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1125, allocations: 0 / 435.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.181e-06/0.1125, allocations: 3.984 kB / 435.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007703/0.1133, allocations: 0.5876 MB / 436.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1133, allocations: 0 / 436.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.359e-05/0.1134, allocations: 15.98 kB / 436.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1134, allocations: 0 / 436.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.1134, allocations: 4 kB / 436.3 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1134, allocations: 7.938 kB / 436.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1134, allocations: 0 / 436.3 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003318/0.1137, allocations: 276.1 kB / 436.6 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.412e-05/0.1138, allocations: 89.06 kB / 436.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.437e-05/0.1138, allocations: 4 kB / 436.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001162/0.1139, allocations: 15.92 kB / 436.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/0.114, allocations: 19.97 kB / 436.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.114, allocations: 4 kB / 436.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.001e-05/0.1141, allocations: 99.27 kB / 436.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1141, allocations: 0 / 436.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003058/0.1144, allocations: 55.84 kB / 436.8 MB, free: 10.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001278/0.1145, allocations: 115.1 kB / 437 MB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003321/0.1149, allocations: 164.1 kB / 437.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1149, allocations: 0 / 437.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001359/0.115, allocations: 75.7 kB / 437.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002804/0.1153, allocations: 23.53 kB / 437.2 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006038/0.1159, allocations: 354.1 kB / 437.6 MB, free: 10.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003868/0.1163, allocations: 0.7326 MB / 438.3 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.244e-05/0.1163, allocations: 19.44 kB / 438.3 MB, free: 9.449 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1163, allocations: 4 kB / 438.3 MB, free: 9.445 MB / 366.1 MB Notification: Performance of Templates: time 0.00434/0.1207, allocations: 2.259 MB / 440.6 MB, free: 7.184 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.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.736389897065237]