Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008795/0.0008795, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00156/0.002439, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007325/0.0007325, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009903/0.001723, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.113/1.113, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1083/1.221, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.527e-05/2.685e-05, allocations: 2.312 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003788/0.003815, allocations: 1.755 MB / 246.4 MB, free: 12.48 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000815/0.00463, allocations: 318.9 kB / 246.7 MB, free: 12.16 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.004762, allocations: 0 / 246.7 MB, free: 12.16 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.004899, allocations: 35.67 kB / 246.8 MB, free: 12.13 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.943e-05/0.004958, allocations: 15.81 kB / 246.8 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005027/0.005461, allocations: 127.7 kB / 246.9 MB, free: 11.99 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004357/0.005897, allocations: 279.5 kB / 247.2 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003635/0.00626, allocations: 158.2 kB / 247.3 MB, free: 11.56 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.006466, allocations: 139.8 kB / 247.5 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.006648, allocations: 75.75 kB / 247.6 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.291e-05/0.006701, allocations: 24 kB / 247.6 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.006811, allocations: 28 kB / 247.6 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.36e-05/0.006894, allocations: 47.86 kB / 247.7 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.44e-05/0.006979, allocations: 51.88 kB / 247.7 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003399/0.007319, allocations: 175.2 kB / 247.9 MB, free: 11.03 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.616e-05/0.007335, allocations: 0 / 247.9 MB, free: 11.03 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.007336, allocations: 0 / 247.9 MB, free: 11.03 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.784e-05/0.007354, allocations: 0 / 247.9 MB, free: 11.03 MB / 250.7 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.0008115/0.008166, allocations: 439.5 kB / 248.3 MB, free: 10.57 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.008212, allocations: 16.02 kB / 248.3 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003701/0.008582, allocations: 130 kB / 248.4 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.008852, allocations: 149.5 kB / 248.6 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.638e-05/0.008899, allocations: 20.88 kB / 248.6 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.008945, allocations: 36.36 kB / 248.6 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.0093, allocations: 210.6 kB / 248.9 MB, free: 9.953 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.009315, allocations: 4.125 kB / 248.9 MB, free: 9.949 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/0.009356, allocations: 16.31 kB / 248.9 MB, free: 9.934 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.304e-05/0.009369, allocations: 4.375 kB / 248.9 MB, free: 9.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/0.009531, allocations: 79.33 kB / 249 MB, free: 9.852 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.01061, allocations: 0.7349 MB / 249.7 MB, free: 9.082 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.01084, allocations: 108.7 kB / 249.8 MB, free: 8.961 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.283e-05/0.01091, allocations: 45.69 kB / 249.8 MB, free: 8.91 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.01093, allocations: 4 kB / 249.8 MB, free: 8.906 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001929/0.01112, allocations: 125.6 kB / 250 MB, free: 8.766 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.174e-06/0.01113, allocations: 0 / 250 MB, free: 8.766 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002812/0.01141, allocations: 139.9 kB / 250.1 MB, free: 8.625 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.262e-05/0.01147, allocations: 89.09 kB / 250.2 MB, free: 8.52 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.0116, allocations: 162.4 kB / 250.4 MB, free: 8.348 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.01164, allocations: 37.7 kB / 250.4 MB, free: 8.305 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.01174, allocations: 140.8 kB / 250.5 MB, free: 8.164 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.367e-05/0.01181, allocations: 63.5 kB / 250.6 MB, free: 8.102 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.01192, allocations: 77.64 kB / 250.7 MB, free: 8.02 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.0121, allocations: 330.8 kB / 251 MB, free: 7.688 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.619e-05/0.01219, allocations: 31.77 kB / 251 MB, free: 7.656 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.428e-05/0.01228, allocations: 108.5 kB / 251.1 MB, free: 7.52 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.01243, allocations: 156.9 kB / 251.3 MB, free: 7.336 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.01243, allocations: 0 / 251.3 MB, free: 7.336 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002123/0.01264, allocations: 177.4 kB / 251.4 MB, free: 7.156 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.01266, allocations: 7.938 kB / 251.5 MB, free: 7.148 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.01267, allocations: 4 kB / 251.5 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.01269, allocations: 4 kB / 251.5 MB, free: 7.141 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.01284, allocations: 43.91 kB / 251.5 MB, free: 7.098 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.01285, allocations: 4 kB / 251.5 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.454e-05/0.01292, allocations: 31.78 kB / 251.5 MB, free: 7.062 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.01294, allocations: 8 kB / 251.6 MB, free: 7.055 MB / 250.7 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,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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.0001291/0.01307, allocations: 145.9 kB / 251.7 MB, free: 6.902 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.51e-05/0.01309, allocations: 16 kB / 251.7 MB, free: 6.887 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.181e-05/0.01314, allocations: 28.8 kB / 251.7 MB, free: 6.859 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.01314, allocations: 4 kB / 251.7 MB, free: 6.855 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.594e-06/0.01314, allocations: 0 / 251.7 MB, free: 6.855 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.01315, allocations: 3.984 kB / 251.7 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.01355, allocations: 372.5 kB / 252.1 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.01355, allocations: 0 / 252.1 MB, free: 6.461 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.097e-05/0.0136, allocations: 16 kB / 252.1 MB, free: 6.445 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.343e-05/0.01362, allocations: 19.84 kB / 252.1 MB, free: 6.426 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.01362, allocations: 4 kB / 252.1 MB, free: 6.422 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.01363, allocations: 7.984 kB / 252.2 MB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.01363, allocations: 0 / 252.2 MB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.01363, allocations: 0 / 252.2 MB, free: 6.414 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001306/0.01376, allocations: 212.2 kB / 252.4 MB, free: 6.188 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.01378, allocations: 8 kB / 252.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.798e-05/0.01383, allocations: 15.98 kB / 252.4 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.683e-05/0.01388, allocations: 15.97 kB / 252.4 MB, free: 6.148 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.01389, allocations: 4 kB / 252.4 MB, free: 6.145 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.171e-05/0.01391, allocations: 24.83 kB / 252.4 MB, free: 6.117 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01391, allocations: 0 / 252.4 MB, free: 6.117 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001634/0.01407, allocations: 55.89 kB / 252.5 MB, free: 6.062 MB / 250.7 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,step.active,transition1.enableFire,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.0001088/0.01418, allocations: 96.05 kB / 252.6 MB, free: 5.961 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001516/0.01433, allocations: 124.5 kB / 252.7 MB, free: 5.836 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/0.01434, allocations: 7.984 kB / 252.7 MB, free: 5.828 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.135e-05/0.01441, allocations: 68.05 kB / 252.8 MB, free: 5.762 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.01465, allocations: 205 kB / 253 MB, free: 5.527 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005512/0.0152, allocations: 341.8 kB / 253.3 MB, free: 5.168 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.734e-05/0.01525, allocations: 76.33 kB / 253.4 MB, free: 5.074 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.534e-05/0.0153, allocations: 21.94 kB / 253.4 MB, free: 5.051 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.555e-05/0.0154, allocations: 79.36 kB / 253.5 MB, free: 4.973 MB / 250.7 MB Notification: Performance of SimCode: time 8.72e-07/0.0154, allocations: 0 / 253.5 MB, free: 4.973 MB / 250.7 MB Notification: Performance of Templates: time 0.003782/0.01918, allocations: 1.902 MB / 255.4 MB, free: 3.109 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.754172538407147]