Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.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.00619/0.00619, allocations: 105.3 kB / 21.98 MB, free: 5.219 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.001321/0.001321, allocations: 210.3 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 259 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_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-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 67.88 kB / 379.8 MB, free: 2.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2624, allocations: 53.36 MB / 433.1 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003024/0.2654, allocations: 1.703 MB / 434.8 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007541/0.2662, allocations: 291.2 kB / 435.1 MB, free: 4.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.2663, allocations: 7.938 kB / 435.1 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.2664, allocations: 27.67 kB / 435.2 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.432e-05/0.2665, allocations: 15.81 kB / 435.2 MB, free: 4.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004285/0.2669, allocations: 127.8 kB / 435.3 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003764/0.2673, allocations: 279.4 kB / 435.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003043/0.2676, allocations: 159.5 kB / 435.7 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001322/0.2677, allocations: 95.7 kB / 435.8 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.2679, allocations: 103.5 kB / 435.9 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.73e-05/0.2679, allocations: 24 kB / 435.9 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.909e-05/0.268, allocations: 32 kB / 436 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.606e-05/0.2681, allocations: 63.81 kB / 436 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.2682, allocations: 107.4 kB / 436.1 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003572/0.2686, allocations: 260.2 kB / 436.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2686, allocations: 0 / 436.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.2686, allocations: 0 / 436.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2686, allocations: 0 / 436.4 MB, free: 3.703 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.0007255/0.2693, allocations: 421.2 kB / 436.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.2693, allocations: 12.03 kB / 436.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002635/0.2696, allocations: 32.78 kB / 436.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.2699, allocations: 182.2 kB / 437 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.643e-05/0.27, allocations: 20.88 kB / 437.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.27, allocations: 28.38 kB / 437.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004902/0.2705, allocations: 269.7 kB / 437.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.2705, allocations: 192 / 437.3 MB, free: 2.676 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.2705, allocations: 15.94 kB / 437.4 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.2706, allocations: 12 kB / 437.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003073/0.2709, allocations: 161.6 kB / 437.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.2721, allocations: 0.9326 MB / 438.5 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.2724, allocations: 153.4 kB / 438.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001275/0.2725, allocations: 73.72 kB / 438.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.2725, allocations: 4 kB / 438.7 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002204/0.2728, allocations: 141 kB / 438.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.2728, allocations: 0 / 438.8 MB, free: 1.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004901/0.2733, allocations: 221.8 kB / 439 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.115e-05/0.2733, allocations: 85.09 kB / 439.1 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.2735, allocations: 156.6 kB / 439.3 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.299e-05/0.2735, allocations: 41.83 kB / 439.3 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.2736, allocations: 140.8 kB / 439.5 MB, free: 436 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.169e-05/0.2737, allocations: 63.5 kB / 439.5 MB, free: 372 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.2738, allocations: 81.64 kB / 439.6 MB, free: 284 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.274, allocations: 330.8 kB / 439.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.2741, allocations: 67.75 kB / 440 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001826/0.2743, allocations: 136.5 kB / 440.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.2746, allocations: 200.8 kB / 440.3 MB, free: 15.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.2746, allocations: 3.938 kB / 440.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0004148/0.275, allocations: 253.6 kB / 440.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.558e-05/0.275, allocations: 11.28 kB / 440.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.275, allocations: 3.984 kB / 440.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.509e-05/0.2751, allocations: 4 kB / 440.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001591/0.2752, allocations: 35.92 kB / 440.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.2752, allocations: 7.938 kB / 440.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.2754, allocations: 27.78 kB / 440.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.2754, allocations: 8 kB / 440.7 MB, free: 15.14 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.0001821/0.2756, allocations: 165.7 kB / 440.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.635e-05/0.2756, allocations: 7.953 kB / 440.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.913e-05/0.2756, allocations: 24.92 kB / 440.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.2756, allocations: 4 kB / 440.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2757, allocations: 0 / 440.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.2757, allocations: 7.922 kB / 440.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007895/0.2764, allocations: 0.547 MB / 441.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2764, allocations: 0 / 441.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.429e-05/0.2765, allocations: 15.94 kB / 441.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2765, allocations: 4 kB / 441.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.2765, allocations: 8 kB / 441.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.2766, allocations: 3.938 kB / 441.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.2766, allocations: 3.984 kB / 441.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003347/0.2769, allocations: 272.1 kB / 441.7 MB, free: 14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.377e-05/0.2769, allocations: 15.84 kB / 441.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.938e-05/0.2769, allocations: 7.984 kB / 441.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.751e-05/0.277, allocations: 15.94 kB / 441.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.457e-05/0.2771, allocations: 19.97 kB / 441.8 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.2771, allocations: 12 kB / 441.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.016e-05/0.2772, allocations: 99.25 kB / 441.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2772, allocations: 3.938 kB / 441.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.2775, allocations: 47.89 kB / 441.9 MB, free: 13.78 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,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.000121/0.2776, allocations: 99.25 kB / 442 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000361/0.278, allocations: 182.6 kB / 442.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.278, allocations: 0 / 442.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.2781, allocations: 71.77 kB / 442.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003269/0.2785, allocations: 22.92 kB / 442.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007259/0.2792, allocations: 366.6 kB / 442.7 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.2796, allocations: 0.7326 MB / 443.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.916e-05/0.2797, allocations: 19.44 kB / 443.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of SimCode: time 1.212e-06/0.2797, allocations: 0 / 443.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of Templates: time 0.004737/0.2844, allocations: 2.282 MB / 445.7 MB, free: 9.953 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.052579192910343]