Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001391/0.001391, allocations: 118.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 211.7 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.412/1.412, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB 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.001914/0.001914, allocations: 63.89 kB / 359.6 MB, free: 12.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2588/0.2607, allocations: 50.55 MB / 410.2 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002842/0.2636, allocations: 1.712 MB / 411.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006477/0.2642, allocations: 295.1 kB / 412.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.087e-05/0.2643, allocations: 7.938 kB / 412.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.2644, allocations: 27.67 kB / 412.2 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.578e-05/0.2645, allocations: 19.8 kB / 412.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.2648, allocations: 119.8 kB / 412.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003167/0.2652, allocations: 267.5 kB / 412.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.2654, allocations: 158.8 kB / 412.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001005/0.2655, allocations: 95.69 kB / 412.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.2657, allocations: 95.55 kB / 413 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.544e-05/0.2657, allocations: 24 kB / 413 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.87e-05/0.2658, allocations: 31.98 kB / 413 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.644e-05/0.2658, allocations: 63.77 kB / 413.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.266, allocations: 99.5 kB / 413.2 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.2663, allocations: 254.8 kB / 413.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.2663, allocations: 4 kB / 413.4 MB, free: 14.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2663, allocations: 7.938 kB / 413.4 MB, free: 14.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.2663, allocations: 0 / 413.4 MB, free: 14.22 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.0006873/0.267, allocations: 494.4 kB / 413.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.924e-05/0.267, allocations: 12.03 kB / 413.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002532/0.2673, allocations: 36.78 kB / 414 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002993/0.2676, allocations: 232 kB / 414.2 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.41e-05/0.2676, allocations: 24.94 kB / 414.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.685e-05/0.2677, allocations: 28.38 kB / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.2681, allocations: 266.6 kB / 414.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2681, allocations: 192 / 414.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.2681, allocations: 19.88 kB / 414.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.2681, allocations: 4 kB / 414.5 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002963/0.2684, allocations: 165.6 kB / 414.7 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.2696, allocations: 0.9557 MB / 415.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.2699, allocations: 157.3 kB / 415.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001169/0.27, allocations: 73.72 kB / 415.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.27, allocations: 4 kB / 415.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.2702, allocations: 137.1 kB / 416 MB, free: 11.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.2702, allocations: 0 / 416 MB, free: 11.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004444/0.2707, allocations: 217.3 kB / 416.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.2707, allocations: 93.08 kB / 416.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000127/0.2709, allocations: 145.7 kB / 416.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.2709, allocations: 45.62 kB / 416.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.271, allocations: 144.7 kB / 416.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.414e-05/0.2711, allocations: 63.64 kB / 416.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001017/0.2712, allocations: 85.45 kB / 416.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.2713, allocations: 330.8 kB / 417.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.2714, allocations: 63.91 kB / 417.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.2716, allocations: 136.5 kB / 417.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.2719, allocations: 192.3 kB / 417.5 MB, free: 9.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2719, allocations: 4 kB / 417.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003878/0.2723, allocations: 253.2 kB / 417.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2723, allocations: 8 kB / 417.7 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.2723, allocations: 4.281 kB / 417.7 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2723, allocations: 8 kB / 417.8 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.2724, allocations: 27.92 kB / 417.8 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.2724, allocations: 7.984 kB / 417.8 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.2726, allocations: 31.83 kB / 417.8 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.2726, allocations: 12 kB / 417.8 MB, free: 9.465 MB / 334.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.0001543/0.2727, allocations: 161.6 kB / 418 MB, free: 9.297 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.2728, allocations: 19.84 kB / 418 MB, free: 9.277 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.942e-05/0.2728, allocations: 20.84 kB / 418 MB, free: 9.254 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2728, allocations: 4 kB / 418 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2728, allocations: 0 / 418 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.2728, allocations: 3.984 kB / 418 MB, free: 9.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007498/0.2736, allocations: 0.5784 MB / 418.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2736, allocations: 0 / 418.6 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.387e-05/0.2736, allocations: 12 kB / 418.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.1e-06/0.2737, allocations: 3.984 kB / 418.6 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.2737, allocations: 11.98 kB / 418.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.2737, allocations: 7.938 kB / 418.7 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2737, allocations: 0 / 418.7 MB, free: 8.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003167/0.274, allocations: 276.1 kB / 418.9 MB, free: 8.281 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.861e-05/0.2741, allocations: 92.98 kB / 419 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.2741, allocations: 0 / 419 MB, free: 8.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000111/0.2742, allocations: 11.94 kB / 419 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.456e-05/0.2743, allocations: 27.97 kB / 419.1 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.092e-05/0.2743, allocations: 4 kB / 419.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.586e-05/0.2743, allocations: 102.8 kB / 419.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2743, allocations: 0 / 419.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002962/0.2746, allocations: 51.84 kB / 419.2 MB, free: 7.98 MB / 334.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.0001163/0.2747, allocations: 107.2 kB / 419.3 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003265/0.2751, allocations: 167.4 kB / 419.5 MB, free: 7.707 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2751, allocations: 8 kB / 419.5 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.2752, allocations: 75.72 kB / 419.6 MB, free: 7.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.2755, allocations: 19.98 kB / 419.6 MB, free: 7.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005993/0.2761, allocations: 332.4 kB / 419.9 MB, free: 7.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.2764, allocations: 0.7366 MB / 420.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.7e-05/0.2765, allocations: 17.95 kB / 420.7 MB, free: 6.461 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.468e-05/0.2766, allocations: 23.42 kB / 420.7 MB, free: 6.438 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2766, allocations: 4 kB / 420.7 MB, free: 6.434 MB / 334.1 MB Notification: Performance of Templates: time 0.004953/0.2815, allocations: 1.702 MB / 422.4 MB, free: 4.738 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches