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.00134/0.00134, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001499/0.001499, allocations: 217 kB / 24.5 MB, free: 4.133 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.446/1.446, allocations: 230.5 MB / 258.2 MB, free: 7.996 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.002103/0.002103, allocations: 63.91 kB / 379 MB, free: 2.531 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2544, allocations: 53.42 MB / 432.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003399/0.2578, allocations: 1.721 MB / 434.1 MB, free: 5.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008297/0.2586, allocations: 295.1 kB / 434.4 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.2588, allocations: 4 kB / 434.4 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.259, allocations: 31.67 kB / 434.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.564e-05/0.2591, allocations: 15.8 kB / 434.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000457/0.2595, allocations: 127.8 kB / 434.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004267/0.2599, allocations: 283.4 kB / 434.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003384/0.2603, allocations: 157.8 kB / 435 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.2604, allocations: 91.7 kB / 435.1 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.2606, allocations: 107.5 kB / 435.2 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.2606, allocations: 24 kB / 435.3 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.048e-05/0.2607, allocations: 24 kB / 435.3 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.368e-05/0.2608, allocations: 59.78 kB / 435.3 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.2609, allocations: 103.5 kB / 435.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003625/0.2613, allocations: 256.2 kB / 435.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2613, allocations: 0 / 435.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2613, allocations: 0 / 435.7 MB, free: 3.504 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.2613, allocations: 0 / 435.7 MB, free: 3.504 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.0007182/0.262, allocations: 421.2 kB / 436.1 MB, free: 3.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.262, allocations: 8.031 kB / 436.1 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002457/0.2623, allocations: 32.78 kB / 436.1 MB, free: 3.023 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.2626, allocations: 174.2 kB / 436.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.765e-05/0.2626, allocations: 28.86 kB / 436.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.228e-05/0.2627, allocations: 28.38 kB / 436.4 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004962/0.2632, allocations: 261.8 kB / 436.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.2632, allocations: 4.188 kB / 436.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.2632, allocations: 15.88 kB / 436.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.2632, allocations: 8 kB / 436.6 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003267/0.2636, allocations: 165.6 kB / 436.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001304/0.2649, allocations: 0.921 MB / 437.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.2652, allocations: 165 kB / 437.9 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.2653, allocations: 73.67 kB / 438 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.663e-05/0.2653, allocations: 4 kB / 438 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002312/0.2656, allocations: 140.1 kB / 438.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.2656, allocations: 0 / 438.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004559/0.266, allocations: 213.3 kB / 438.3 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.857e-05/0.2661, allocations: 85.11 kB / 438.4 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001613/0.2662, allocations: 153.7 kB / 438.5 MB, free: 448 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.9e-05/0.2663, allocations: 45.62 kB / 438.6 MB, free: 396 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.2664, allocations: 140.8 kB / 438.7 MB, free: 248 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.929e-05/0.2664, allocations: 67.52 kB / 438.8 MB, free: 180 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.2666, allocations: 81.45 kB / 438.9 MB, free: 92 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.2667, allocations: 334.7 kB / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.2669, allocations: 63.97 kB / 439.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.2671, allocations: 140.5 kB / 439.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002931/0.2673, allocations: 196.3 kB / 439.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2673, allocations: 0 / 439.6 MB, free: 15.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004181/0.2678, allocations: 249.3 kB / 439.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.2678, allocations: 10.78 kB / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.2678, allocations: 4 kB / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2678, allocations: 4 kB / 439.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.268, allocations: 35.92 kB / 439.9 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.268, allocations: 4 kB / 439.9 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.2681, allocations: 27.83 kB / 439.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.153e-05/0.2681, allocations: 12 kB / 439.9 MB, free: 14.96 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.0001687/0.2683, allocations: 161.7 kB / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.2683, allocations: 23.84 kB / 440.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.604e-05/0.2684, allocations: 12.94 kB / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2684, allocations: 4 kB / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.2684, allocations: 0 / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2684, allocations: 0 / 440.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008157/0.2692, allocations: 0.5515 MB / 440.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2692, allocations: 0 / 440.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.783e-05/0.2693, allocations: 23.98 kB / 440.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2693, allocations: 0 / 440.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.2693, allocations: 8 kB / 440.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.2693, allocations: 3.938 kB / 440.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2693, allocations: 0 / 440.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003445/0.2696, allocations: 280.1 kB / 441 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.411e-05/0.2697, allocations: 11.89 kB / 441 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.2697, allocations: 4 kB / 441 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.615e-05/0.2698, allocations: 15.92 kB / 441 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.458e-05/0.2698, allocations: 23.97 kB / 441 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.421e-05/0.2699, allocations: 8 kB / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.484e-05/0.2699, allocations: 94.89 kB / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2699, allocations: 0 / 441.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003107/0.2702, allocations: 55.84 kB / 441.2 MB, free: 13.61 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: 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.0001242/0.2704, allocations: 107.2 kB / 441.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003495/0.2707, allocations: 172 kB / 441.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.2707, allocations: 4 kB / 441.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.2709, allocations: 71.72 kB / 441.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002891/0.2711, allocations: 23.92 kB / 441.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000687/0.2718, allocations: 354.1 kB / 441.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004783/0.2723, allocations: 0.733 MB / 442.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.805e-05/0.2724, allocations: 23.44 kB / 442.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2724, allocations: 0 / 442.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of Templates: time 0.004905/0.2773, allocations: 2.262 MB / 444.9 MB, free: 9.797 MB / 350.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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.994445035001263]