Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.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.001655/0.001655, allocations: 69.64 kB / 21.24 MB, free: 0.5547 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.002114/0.002114, allocations: 150.9 kB / 24.49 MB, free: 3.855 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.421/1.421, allocations: 173.4 MB / 201.1 MB, free: 12.69 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 47.92 kB / 319.4 MB, free: 3.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.09482, allocations: 52.16 MB / 371.5 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003241/0.09806, allocations: 1.689 MB / 373.2 MB, free: 5.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007433/0.0988, allocations: 287.1 kB / 373.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.09891, allocations: 4 kB / 373.5 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001397/0.09905, allocations: 31.69 kB / 373.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.927e-05/0.09912, allocations: 19.78 kB / 373.6 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004195/0.09954, allocations: 123.8 kB / 373.7 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003682/0.09991, allocations: 271.5 kB / 374 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002884/0.1002, allocations: 146 kB / 374.1 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.1003, allocations: 91.7 kB / 374.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.1004, allocations: 87.53 kB / 374.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.422e-05/0.1005, allocations: 28 kB / 374.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.239e-05/0.1006, allocations: 35.98 kB / 374.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.542e-05/0.1007, allocations: 59.77 kB / 374.4 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.1008, allocations: 83.64 kB / 374.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003353/0.1011, allocations: 251 kB / 374.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1011, allocations: 0 / 374.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1011, allocations: 0 / 374.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1011, allocations: 0 / 374.7 MB, free: 4.18 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.000653/0.1018, allocations: 425.1 kB / 375.1 MB, free: 3.734 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.1018, allocations: 12.03 kB / 375.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.89e-05/0.1019, allocations: 28.8 kB / 375.2 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.1021, allocations: 174.2 kB / 375.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.1022, allocations: 24.86 kB / 375.4 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.288e-05/0.1022, allocations: 28.38 kB / 375.4 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004607/0.1027, allocations: 265.9 kB / 375.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1027, allocations: 192 / 375.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.1027, allocations: 19.92 kB / 375.7 MB, free: 3.148 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.1027, allocations: 8 kB / 375.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003111/0.103, allocations: 165.8 kB / 375.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.1042, allocations: 0.8477 MB / 376.7 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002909/0.1045, allocations: 157.3 kB / 376.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.1046, allocations: 77.56 kB / 376.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.26e-05/0.1046, allocations: 8 kB / 376.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000233/0.1049, allocations: 129.1 kB / 377.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.393e-06/0.1049, allocations: 0 / 377.1 MB, free: 1.676 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000451/0.1053, allocations: 228 kB / 377.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.1054, allocations: 89.08 kB / 377.4 MB, free: 1.344 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001414/0.1055, allocations: 157.5 kB / 377.5 MB, free: 1.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.485e-05/0.1055, allocations: 41.83 kB / 377.6 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1057, allocations: 136.8 kB / 377.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.12e-05/0.1057, allocations: 67.52 kB / 377.8 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.1058, allocations: 81.62 kB / 377.8 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.106, allocations: 322.8 kB / 378.2 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.1061, allocations: 71.97 kB / 378.2 MB, free: 460 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.1063, allocations: 140.5 kB / 378.4 MB, free: 288 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.1066, allocations: 200.2 kB / 378.6 MB, free: 56 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1066, allocations: 0 / 378.6 MB, free: 56 kB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000426/0.107, allocations: 254.1 kB / 378.8 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.107, allocations: 16.02 kB / 378.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.107, allocations: 0 / 378.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.107, allocations: 8 kB / 378.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000135/0.1072, allocations: 31.92 kB / 378.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.1072, allocations: 4 kB / 378.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001099/0.1073, allocations: 27.78 kB / 378.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.818e-05/0.1073, allocations: 19.98 kB / 378.9 MB, free: 15.69 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.0001537/0.1075, allocations: 153.7 kB / 379.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.868e-05/0.1075, allocations: 15.91 kB / 379.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003538/0.1079, allocations: 198.4 kB / 379.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.1079, allocations: 0 / 379.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.263e-06/0.1079, allocations: 4 kB / 379.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.1079, allocations: 0 / 379.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007334/0.1086, allocations: 0.5086 MB / 379.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.1086, allocations: 0 / 379.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.936e-05/0.1087, allocations: 19.92 kB / 379.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.02e-06/0.1087, allocations: 4 kB / 379.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.1087, allocations: 4 kB / 379.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1087, allocations: 3.938 kB / 379.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.1087, allocations: 11.94 kB / 379.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004097/0.1091, allocations: 292.3 kB / 380.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.308e-05/0.1092, allocations: 23.84 kB / 380.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.1092, allocations: 7.938 kB / 380.1 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.654e-05/0.1093, allocations: 8 kB / 380.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.59e-05/0.1093, allocations: 27.89 kB / 380.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.1094, allocations: 4 kB / 380.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.565e-05/0.1094, allocations: 107.2 kB / 380.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1094, allocations: 0 / 380.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000314/0.1097, allocations: 51.89 kB / 380.3 MB, free: 14.19 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,transition1.enableFire,step.active,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.0001588/0.1099, allocations: 118.9 kB / 380.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003274/0.1102, allocations: 167.8 kB / 380.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.1102, allocations: 4 kB / 380.6 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.1104, allocations: 71.91 kB / 380.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002777/0.1107, allocations: 22.64 kB / 380.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000602/0.1113, allocations: 348.8 kB / 381.1 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001401/0.1114, allocations: 133.2 kB / 381.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.78e-05/0.1115, allocations: 25.94 kB / 381.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.094e-05/0.1115, allocations: 24.5 kB / 381.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1115, allocations: 0 / 381.2 MB, free: 13.24 MB / 350.1 MB Notification: Performance of Templates: time 0.005749/0.1173, allocations: 1.928 MB / 383.2 MB, free: 11.34 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.145775155979209]