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/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 trunk/package.mo", uses=false) 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_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/ModelicaServices trunk/package.mo): time 0.001676/0.001676, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001541/0.001541, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.703/1.703, allocations: 227.4 MB / 246.9 MB, free: 10.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001189/0.001189, allocations: 64.12 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4203/0.4215, allocations: 50.55 MB / 409.2 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003009/0.4245, allocations: 1.67 MB / 410.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000675/0.4252, allocations: 291.1 kB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.064e-05/0.4253, allocations: 4 kB / 411.2 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.4255, allocations: 23.69 kB / 411.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.086e-05/0.4255, allocations: 19.78 kB / 411.2 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003732/0.4259, allocations: 115.8 kB / 411.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002901/0.4262, allocations: 271.5 kB / 411.6 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.4265, allocations: 198.9 kB / 411.8 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.4266, allocations: 95.69 kB / 411.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001276/0.4268, allocations: 95.55 kB / 412 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.457e-05/0.4268, allocations: 27.94 kB / 412 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.098e-05/0.4269, allocations: 27.98 kB / 412 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.69e-05/0.427, allocations: 59.83 kB / 412.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.4271, allocations: 103.5 kB / 412.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003165/0.4274, allocations: 255 kB / 412.4 MB, free: 14.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4274, allocations: 4 kB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.4274, allocations: 3.938 kB / 412.5 MB, free: 14.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.4274, allocations: 0 / 412.5 MB, free: 14.31 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.000797/0.4282, allocations: 499.7 kB / 412.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.4283, allocations: 8.031 kB / 413 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002598/0.4286, allocations: 28.75 kB / 413 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.4289, allocations: 232 kB / 413.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.281e-05/0.4289, allocations: 24.94 kB / 413.2 MB, free: 13.44 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.863e-05/0.429, allocations: 28.38 kB / 413.3 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.4295, allocations: 270.5 kB / 413.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.4295, allocations: 4.188 kB / 413.5 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.946e-05/0.4295, allocations: 15.92 kB / 413.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.4295, allocations: 8 kB / 413.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002999/0.4298, allocations: 161.6 kB / 413.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.431, allocations: 0.9555 MB / 414.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.4313, allocations: 174.5 kB / 414.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.4314, allocations: 89.62 kB / 414.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.387e-05/0.4315, allocations: 0 / 414.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002153/0.4317, allocations: 148.2 kB / 415.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.263e-06/0.4317, allocations: 0 / 415.1 MB, free: 11.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004451/0.4322, allocations: 221.2 kB / 415.3 MB, free: 11.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.4322, allocations: 85.11 kB / 415.4 MB, free: 11.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.4324, allocations: 149.6 kB / 415.5 MB, free: 11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.4324, allocations: 37.7 kB / 415.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.314e-05/0.4325, allocations: 144.5 kB / 415.7 MB, free: 10.81 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.649e-05/0.4326, allocations: 59.19 kB / 415.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.545e-05/0.4327, allocations: 81.81 kB / 415.8 MB, free: 10.67 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.4328, allocations: 330.8 kB / 416.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.4329, allocations: 63.75 kB / 416.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.4331, allocations: 140.5 kB / 416.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/0.4333, allocations: 204 kB / 416.5 MB, free: 9.879 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4333, allocations: 0 / 416.5 MB, free: 9.879 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003495/0.4337, allocations: 253.2 kB / 416.8 MB, free: 9.625 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.4337, allocations: 4 kB / 416.8 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.4337, allocations: 4 kB / 416.8 MB, free: 9.617 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.4338, allocations: 4.281 kB / 416.8 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.4339, allocations: 35.92 kB / 416.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.4339, allocations: 7.938 kB / 416.9 MB, free: 9.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.212e-05/0.434, allocations: 23.75 kB / 416.9 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.598e-05/0.434, allocations: 12 kB / 416.9 MB, free: 9.535 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.000147/0.4342, allocations: 165.6 kB / 417 MB, free: 9.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.106e-05/0.4342, allocations: 11.91 kB / 417.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.447e-05/0.4343, allocations: 24.83 kB / 417.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.4343, allocations: 0 / 417.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.4343, allocations: 8 kB / 417.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.4343, allocations: 0 / 417.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006522/0.435, allocations: 0.5781 MB / 417.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.435, allocations: 0 / 417.7 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.091e-05/0.4351, allocations: 19.92 kB / 417.7 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.4351, allocations: 3.938 kB / 417.7 MB, free: 8.656 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.4351, allocations: 4 kB / 417.7 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.761e-06/0.4351, allocations: 7.938 kB / 417.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.4351, allocations: 0 / 417.7 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.4354, allocations: 276 kB / 418 MB, free: 8.355 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.421e-05/0.4355, allocations: 85.02 kB / 418.1 MB, free: 8.254 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.4355, allocations: 8 kB / 418.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.762e-05/0.4356, allocations: 15.91 kB / 418.1 MB, free: 8.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.842e-05/0.4357, allocations: 15.98 kB / 418.1 MB, free: 8.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.4357, allocations: 11.98 kB / 418.1 MB, free: 8.203 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.449e-05/0.4357, allocations: 102.6 kB / 418.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4358, allocations: 0 / 418.2 MB, free: 8.105 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002892/0.436, allocations: 59.69 kB / 418.3 MB, free: 8.047 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.0001321/0.4362, allocations: 103.5 kB / 418.4 MB, free: 7.938 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003252/0.4365, allocations: 183.7 kB / 418.5 MB, free: 7.758 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4365, allocations: 0.5625 kB / 418.5 MB, free: 7.758 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.4367, allocations: 83.77 kB / 418.6 MB, free: 7.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003001/0.437, allocations: 26.95 kB / 418.7 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006393/0.4376, allocations: 334.3 kB / 419 MB, free: 7.297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003688/0.438, allocations: 0.7327 MB / 419.7 MB, free: 6.535 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.968e-05/0.4381, allocations: 21.94 kB / 419.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.695e-05/0.4381, allocations: 23.44 kB / 419.8 MB, free: 6.488 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4382, allocations: 0 / 419.8 MB, free: 6.488 MB / 334.1 MB Notification: Performance of Templates: time 0.005015/0.4432, allocations: 1.725 MB / 421.5 MB, free: 4.773 MB / 334.1 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches