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) 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 115.5 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001341/0.001341, allocations: 214.8 kB / 19.41 MB, free: 3.66 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.414/1.414, allocations: 227.7 MB / 247.9 MB, free: 10.28 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.001922/0.001922, allocations: 63.91 kB / 359.6 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2515/0.2535, allocations: 50.54 MB / 410.2 MB, free: 1.484 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003002/0.2565, allocations: 1.688 MB / 411.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007008/0.2572, allocations: 295.1 kB / 412.2 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.312e-05/0.2573, allocations: 7.938 kB / 412.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.2574, allocations: 27.73 kB / 412.2 MB, free: 15.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.985e-05/0.2574, allocations: 15.75 kB / 412.2 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003992/0.2578, allocations: 119.8 kB / 412.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003568/0.2582, allocations: 267.5 kB / 412.6 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.2585, allocations: 172.2 kB / 412.7 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.2586, allocations: 83.72 kB / 412.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.2588, allocations: 107.5 kB / 412.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.2588, allocations: 24 kB / 413 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.716e-05/0.2589, allocations: 31.98 kB / 413 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.72e-05/0.259, allocations: 63.77 kB / 413.1 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.2591, allocations: 95.53 kB / 413.1 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003242/0.2594, allocations: 258.8 kB / 413.4 MB, free: 14.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2594, allocations: 3.984 kB / 413.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2594, allocations: 4 kB / 413.4 MB, free: 14.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.689e-06/0.2594, allocations: 0 / 413.4 MB, free: 14.25 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.0007301/0.2602, allocations: 0.4905 MB / 413.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.2602, allocations: 8.031 kB / 413.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002588/0.2605, allocations: 40.77 kB / 413.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.2608, allocations: 236 kB / 414.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.889e-05/0.2608, allocations: 24.94 kB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.2608, allocations: 28.36 kB / 414.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004666/0.2613, allocations: 266.6 kB / 414.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2613, allocations: 8.125 kB / 414.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.478e-05/0.2614, allocations: 11.94 kB / 414.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2614, allocations: 8 kB / 414.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003043/0.2617, allocations: 165.6 kB / 414.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/0.2629, allocations: 0.9557 MB / 415.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002936/0.2632, allocations: 161.4 kB / 415.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.2633, allocations: 73.62 kB / 415.9 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.2633, allocations: 4 kB / 415.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002166/0.2636, allocations: 133.1 kB / 416 MB, free: 11.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.2636, allocations: 0 / 416 MB, free: 11.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004423/0.264, allocations: 225.3 kB / 416.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.749e-05/0.2641, allocations: 81.11 kB / 416.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.2642, allocations: 161.5 kB / 416.5 MB, free: 10.94 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.083e-05/0.2642, allocations: 33.7 kB / 416.5 MB, free: 10.9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.2644, allocations: 140.8 kB / 416.6 MB, free: 10.76 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.912e-05/0.2644, allocations: 67.64 kB / 416.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.2645, allocations: 81.64 kB / 416.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.2647, allocations: 330.8 kB / 417.1 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.2648, allocations: 71.75 kB / 417.2 MB, free: 10.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.265, allocations: 132.5 kB / 417.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002754/0.2652, allocations: 196.3 kB / 417.5 MB, free: 9.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2652, allocations: 0 / 417.5 MB, free: 9.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003926/0.2656, allocations: 249.3 kB / 417.7 MB, free: 9.574 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2657, allocations: 4.281 kB / 417.7 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.2657, allocations: 8 kB / 417.7 MB, free: 9.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2657, allocations: 4 kB / 417.7 MB, free: 9.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.2658, allocations: 35.92 kB / 417.8 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.2658, allocations: 4 kB / 417.8 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.625e-05/0.2659, allocations: 31.77 kB / 417.8 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.266, allocations: 12 kB / 417.8 MB, free: 9.477 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.0001521/0.2661, allocations: 165.6 kB / 418 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.278e-05/0.2661, allocations: 11.91 kB / 418 MB, free: 9.293 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.562e-05/0.2662, allocations: 24.83 kB / 418 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.2662, allocations: 7.938 kB / 418 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.2662, allocations: 0 / 418 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.2662, allocations: 0 / 418 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007406/0.2669, allocations: 0.5823 MB / 418.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2669, allocations: 0 / 418.6 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.918e-05/0.267, allocations: 23.98 kB / 418.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.267, allocations: 0 / 418.6 MB, free: 8.594 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.267, allocations: 7.938 kB / 418.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.267, allocations: 7.938 kB / 418.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.267, allocations: 0 / 418.6 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003138/0.2674, allocations: 272.1 kB / 418.9 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.81e-05/0.2674, allocations: 96.95 kB / 419 MB, free: 8.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.367e-05/0.2674, allocations: 4 kB / 419 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.087e-05/0.2675, allocations: 15.92 kB / 419 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.327e-05/0.2676, allocations: 23.97 kB / 419.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.167e-05/0.2676, allocations: 8 kB / 419.1 MB, free: 8.129 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.478e-05/0.2677, allocations: 102.4 kB / 419.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2677, allocations: 0 / 419.2 MB, free: 8.031 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002883/0.268, allocations: 47.89 kB / 419.2 MB, free: 7.984 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,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.0001473/0.2681, allocations: 103.2 kB / 419.3 MB, free: 7.875 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.2684, allocations: 167.4 kB / 419.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2684, allocations: 4.062 kB / 419.5 MB, free: 7.711 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.2686, allocations: 83.69 kB / 419.6 MB, free: 7.629 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.2689, allocations: 19.98 kB / 419.6 MB, free: 7.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006207/0.2695, allocations: 336.4 kB / 419.9 MB, free: 7.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.2699, allocations: 0.7366 MB / 420.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.75e-05/0.27, allocations: 17.95 kB / 420.7 MB, free: 6.465 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.818e-05/0.2701, allocations: 19.44 kB / 420.7 MB, free: 6.445 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2701, allocations: 4 kB / 420.7 MB, free: 6.441 MB / 334.1 MB Notification: Performance of Templates: time 0.005168/0.2752, allocations: 1.726 MB / 422.4 MB, free: 4.723 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) 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) Reference file matches