Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 226.8 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001162/0.001163, allocations: 109.7 kB / 296.7 MB, free: 6.457 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 47.92 kB / 356.6 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3361, allocations: 50.44 MB / 407 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003137/0.3393, allocations: 1.772 MB / 408.8 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007661/0.3401, allocations: 311.1 kB / 409.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.3403, allocations: 4 kB / 409.1 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001722/0.3404, allocations: 19.8 kB / 409.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.154e-05/0.3405, allocations: 11.92 kB / 409.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004146/0.3409, allocations: 95.91 kB / 409.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000313/0.3412, allocations: 259.5 kB / 409.5 MB, free: 25.36 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002921/0.3415, allocations: 175.2 kB / 409.7 MB, free: 25.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.835e-05/0.3416, allocations: 91.69 kB / 409.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.3418, allocations: 95.53 kB / 409.8 MB, free: 25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.182e-05/0.3418, allocations: 16 kB / 409.9 MB, free: 24.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.688e-05/0.3419, allocations: 31.92 kB / 409.9 MB, free: 24.95 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.202e-05/0.342, allocations: 43.84 kB / 409.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001085/0.3421, allocations: 99.5 kB / 410 MB, free: 24.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.3424, allocations: 216.9 kB / 410.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.403e-06/0.3424, allocations: 0 / 410.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3424, allocations: 0 / 410.2 MB, free: 24.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.003e-05/0.3424, allocations: 0 / 410.2 MB, free: 24.6 MB / 298.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.000816/0.3432, allocations: 0.4947 MB / 410.7 MB, free: 24.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.3433, allocations: 12.88 kB / 410.7 MB, free: 24.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.817e-05/0.3434, allocations: 24.66 kB / 410.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.3437, allocations: 232 kB / 411 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.855e-05/0.3437, allocations: 20.94 kB / 411 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.3437, allocations: 28.38 kB / 411 MB, free: 23.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003957/0.3441, allocations: 274.6 kB / 411.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.3442, allocations: 8.125 kB / 411.3 MB, free: 23.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.378e-05/0.3442, allocations: 15.94 kB / 411.3 MB, free: 23.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.3442, allocations: 7.938 kB / 411.3 MB, free: 23.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00025/0.3445, allocations: 161.6 kB / 411.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008952/0.3454, allocations: 0.9751 MB / 412.5 MB, free: 22.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000237/0.3457, allocations: 177.9 kB / 412.7 MB, free: 21.99 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001122/0.3458, allocations: 85.62 kB / 412.7 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.3458, allocations: 3.984 kB / 412.7 MB, free: 21.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002432/0.3461, allocations: 142 kB / 412.9 MB, free: 21.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.3461, allocations: 0 / 412.9 MB, free: 21.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003691/0.3464, allocations: 223.4 kB / 413.1 MB, free: 21.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.3465, allocations: 89.11 kB / 413.2 MB, free: 21.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.875e-05/0.3466, allocations: 152.9 kB / 413.3 MB, free: 21.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.3466, allocations: 41.83 kB / 413.4 MB, free: 21.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.504e-05/0.3467, allocations: 144.5 kB / 413.5 MB, free: 21.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.7e-05/0.3467, allocations: 63.19 kB / 413.6 MB, free: 21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.796e-05/0.3468, allocations: 77.67 kB / 413.7 MB, free: 20.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.896e-05/0.3469, allocations: 330.8 kB / 414 MB, free: 20.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.87e-05/0.347, allocations: 63.97 kB / 414 MB, free: 20.53 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.3471, allocations: 140.3 kB / 414.2 MB, free: 20.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.3473, allocations: 188.5 kB / 414.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3473, allocations: 0 / 414.4 MB, free: 20.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003146/0.3476, allocations: 265.9 kB / 414.6 MB, free: 19.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.3477, allocations: 10.34 kB / 414.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.3477, allocations: 0 / 414.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.3477, allocations: 4 kB / 414.6 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.3478, allocations: 35.92 kB / 414.7 MB, free: 19.83 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.557e-06/0.3478, allocations: 7.984 kB / 414.7 MB, free: 19.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.442e-05/0.3479, allocations: 23.75 kB / 414.7 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.348, allocations: 16 kB / 414.7 MB, free: 19.79 MB / 298.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.condition,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.0001283/0.3481, allocations: 175.1 kB / 414.9 MB, free: 19.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.286e-05/0.3481, allocations: 15.81 kB / 414.9 MB, free: 19.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00029/0.3484, allocations: 186.4 kB / 415.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.3484, allocations: 4 kB / 415.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3484, allocations: 0 / 415.1 MB, free: 19.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.3485, allocations: 3.984 kB / 415.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005559/0.349, allocations: 0.5988 MB / 415.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.349, allocations: 4 kB / 415.7 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.701e-05/0.3491, allocations: 23.92 kB / 415.7 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.3491, allocations: 7.875 kB / 415.7 MB, free: 18.7 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.3491, allocations: 7.938 kB / 415.7 MB, free: 18.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3491, allocations: 0 / 415.7 MB, free: 18.69 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3491, allocations: 0 / 415.7 MB, free: 18.69 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004778/0.3496, allocations: 0.8964 MB / 416.6 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-05/0.3497, allocations: 96.84 kB / 416.7 MB, free: 17.62 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.577e-05/0.3497, allocations: 8 kB / 416.7 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.99e-05/0.3498, allocations: 8 kB / 416.7 MB, free: 17.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.3499, allocations: 15.97 kB / 416.8 MB, free: 17.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.534e-05/0.3499, allocations: 12 kB / 416.8 MB, free: 17.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.381e-05/0.3499, allocations: 91.27 kB / 416.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3499, allocations: 4 kB / 416.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003792/0.3503, allocations: 59.83 kB / 416.9 MB, free: 17.42 MB / 298.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: 20 (transition2.t_start,step.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,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 (26): * Single equations (assignments): 21 * 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.0001539/0.3505, allocations: 107.1 kB / 417 MB, free: 17.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002641/0.3508, allocations: 187.8 kB / 417.2 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3508, allocations: 0 / 417.2 MB, free: 17.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001119/0.3509, allocations: 92.22 kB / 417.3 MB, free: 17.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002571/0.3512, allocations: 24.61 kB / 417.3 MB, free: 17.01 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006299/0.3518, allocations: 0.5831 MB / 417.9 MB, free: 16.39 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001704/0.352, allocations: 0.7443 MB / 418.6 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.572e-05/0.3521, allocations: 29.88 kB / 418.7 MB, free: 15.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.029e-05/0.3521, allocations: 19.44 kB / 418.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3521, allocations: 4 kB / 418.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of Templates: time 0.004326/0.3565, allocations: 1.837 MB / 420.5 MB, free: 13.74 MB / 298.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches