Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 115.5 kB / 18.41 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 192.3 kB / 21.35 MB, free: 1.738 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.457/1.457, allocations: 222.9 MB / 247 MB, free: 4.355 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 43.92 kB / 358.6 MB, free: 8.66 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09536/0.09688, allocations: 49.44 MB / 408.1 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002989/0.09991, allocations: 1.663 MB / 409.7 MB, free: 5.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007693/0.1007, allocations: 287.2 kB / 410 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.419e-05/0.1008, allocations: 0 / 410 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.101, allocations: 31.67 kB / 410.1 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.256e-05/0.101, allocations: 11.81 kB / 410.1 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.1015, allocations: 119.8 kB / 410.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003354/0.1018, allocations: 275.4 kB / 410.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003457/0.1022, allocations: 195 kB / 410.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001065/0.1023, allocations: 87.7 kB / 410.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.1024, allocations: 107.5 kB / 410.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.426e-05/0.1025, allocations: 24 kB / 410.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.182e-05/0.1026, allocations: 31.94 kB / 410.9 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.371e-05/0.1027, allocations: 55.83 kB / 410.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.1028, allocations: 107.5 kB / 411.1 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.1032, allocations: 258.9 kB / 411.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.1032, allocations: 4 kB / 411.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.1032, allocations: 0 / 411.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.1032, allocations: 4 kB / 411.3 MB, free: 3.926 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007619/0.104, allocations: 0.4924 MB / 411.8 MB, free: 3.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.104, allocations: 11.89 kB / 411.8 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.152e-05/0.1041, allocations: 24.8 kB / 411.8 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003407/0.1045, allocations: 240 kB / 412.1 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.356e-05/0.1045, allocations: 20.94 kB / 412.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.1046, allocations: 28.38 kB / 412.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004672/0.105, allocations: 274.6 kB / 412.4 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.1051, allocations: 8.125 kB / 412.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.828e-05/0.1051, allocations: 11.94 kB / 412.4 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.1051, allocations: 8 kB / 412.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003154/0.1054, allocations: 165.6 kB / 412.6 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.1066, allocations: 0.9713 MB / 413.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/0.1069, allocations: 169.5 kB / 413.7 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.1071, allocations: 89.61 kB / 413.8 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.395e-05/0.1071, allocations: 4 kB / 413.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002208/0.1073, allocations: 132.1 kB / 413.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 3.697e-06/0.1074, allocations: 0 / 413.9 MB, free: 1.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004512/0.1078, allocations: 229.3 kB / 414.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.774e-05/0.1079, allocations: 89.03 kB / 414.2 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.108, allocations: 153.7 kB / 414.4 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.1081, allocations: 37.7 kB / 414.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.916e-05/0.1082, allocations: 140.8 kB / 414.6 MB, free: 420 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.001e-05/0.1083, allocations: 67.45 kB / 414.6 MB, free: 352 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.1084, allocations: 77.69 kB / 414.7 MB, free: 268 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001574/0.1085, allocations: 334.9 kB / 415 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.1087, allocations: 63.95 kB / 415.1 MB, free: 15.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.1089, allocations: 140.3 kB / 415.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002821/0.1091, allocations: 200.8 kB / 415.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1092, allocations: 4 kB / 415.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004043/0.1096, allocations: 257.2 kB / 415.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1096, allocations: 11.98 kB / 415.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1096, allocations: 0 / 415.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.1096, allocations: 4 kB / 415.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001465/0.1098, allocations: 31.92 kB / 415.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.1098, allocations: 8.266 kB / 415.7 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.1099, allocations: 31.84 kB / 415.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.769e-05/0.11, allocations: 19.98 kB / 415.8 MB, free: 15.1 MB / 350.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.0001619/0.1101, allocations: 161.6 kB / 416 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.1102, allocations: 15.91 kB / 416 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000352/0.1105, allocations: 195 kB / 416.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.948e-06/0.1105, allocations: 7.938 kB / 416.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1106, allocations: 0 / 416.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1106, allocations: 4 kB / 416.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007972/0.1114, allocations: 0.587 MB / 416.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1114, allocations: 0 / 416.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.79e-05/0.1115, allocations: 19.92 kB / 416.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1115, allocations: 4 kB / 416.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.9e-05/0.1115, allocations: 7.938 kB / 416.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.1115, allocations: 4 kB / 416.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1115, allocations: 0 / 416.8 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003357/0.1119, allocations: 288.2 kB / 417.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/0.1119, allocations: 100.9 kB / 417.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.826e-05/0.112, allocations: 3.938 kB / 417.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.974e-05/0.1121, allocations: 11.94 kB / 417.2 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.1121, allocations: 23.97 kB / 417.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.569e-05/0.1122, allocations: 4 kB / 417.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.179e-05/0.1122, allocations: 101.7 kB / 417.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1123, allocations: 4 kB / 417.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.1126, allocations: 55.88 kB / 417.4 MB, free: 13.41 MB / 350.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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 21 * 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.0001598/0.1127, allocations: 107.2 kB / 417.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003554/0.1131, allocations: 188 kB / 417.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1131, allocations: 0 / 417.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.1133, allocations: 89.05 kB / 417.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.1136, allocations: 32.05 kB / 417.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006589/0.1142, allocations: 382.2 kB / 418.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.1146, allocations: 0.7401 MB / 418.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.505e-05/0.1147, allocations: 19.44 kB / 418.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1147, allocations: 0 / 418.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Templates: time 0.004817/0.1195, allocations: 2.45 MB / 421.4 MB, free: 9.34 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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: 7.055184826022014]