Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 108.3 kB / 17.06 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001716/0.001716, allocations: 192 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.613/1.613, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001285, allocations: 51.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3439, allocations: 49.42 MB / 400.7 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.003312/0.3472, allocations: 1.678 MB / 402.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007606/0.348, allocations: 287.1 kB / 402.6 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.3482, allocations: 7.938 kB / 402.7 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.3483, allocations: 23.69 kB / 402.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.625e-05/0.3484, allocations: 23.8 kB / 402.7 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.3489, allocations: 115.8 kB / 402.8 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003392/0.3492, allocations: 275.5 kB / 403.1 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003243/0.3496, allocations: 186.9 kB / 403.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001016/0.3497, allocations: 95.62 kB / 403.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.3498, allocations: 103.5 kB / 403.5 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.565e-05/0.3499, allocations: 24 kB / 403.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.11e-05/0.35, allocations: 31.98 kB / 403.5 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.001e-05/0.3501, allocations: 55.84 kB / 403.6 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.3502, allocations: 99.52 kB / 403.7 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003367/0.3505, allocations: 255.1 kB / 403.9 MB, free: 5.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.3505, allocations: 7.984 kB / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3505, allocations: 0 / 403.9 MB, free: 5.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.3506, allocations: 0 / 403.9 MB, free: 5.621 MB / 318.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.0007827/0.3514, allocations: 0.491 MB / 404.4 MB, free: 5.086 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.3514, allocations: 11.89 kB / 404.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.428e-05/0.3515, allocations: 20.75 kB / 404.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.3518, allocations: 240 kB / 404.7 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.3518, allocations: 20.94 kB / 404.7 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.206e-05/0.3519, allocations: 32.36 kB / 404.7 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000469/0.3524, allocations: 274.5 kB / 405 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.3524, allocations: 192 / 405 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.3524, allocations: 11.94 kB / 405 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.858e-06/0.3524, allocations: 8 kB / 405 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002974/0.3527, allocations: 165.6 kB / 405.2 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.3539, allocations: 0.9671 MB / 406.1 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.3542, allocations: 175.1 kB / 406.3 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.3543, allocations: 85.67 kB / 406.4 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.3544, allocations: 11.92 kB / 406.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002363/0.3546, allocations: 137 kB / 406.5 MB, free: 2.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.763e-06/0.3546, allocations: 0 / 406.5 MB, free: 2.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005199/0.3551, allocations: 230.9 kB / 406.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.486e-05/0.3552, allocations: 85.09 kB / 406.9 MB, free: 2.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.3554, allocations: 153 kB / 407 MB, free: 2.301 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.3554, allocations: 37.7 kB / 407 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3555, allocations: 140.5 kB / 407.2 MB, free: 2.117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.574e-05/0.3556, allocations: 63.17 kB / 407.2 MB, free: 2.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.3557, allocations: 81.81 kB / 407.3 MB, free: 1.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.3559, allocations: 338.7 kB / 407.7 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.3561, allocations: 67.97 kB / 407.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.3562, allocations: 140.3 kB / 407.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002786/0.3565, allocations: 200.8 kB / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3565, allocations: 0 / 408.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003927/0.3569, allocations: 253.2 kB / 408.3 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.357, allocations: 8 kB / 408.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.357, allocations: 0 / 408.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.357, allocations: 8.281 kB / 408.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.3572, allocations: 31.92 kB / 408.3 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.3572, allocations: 7.938 kB / 408.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.3573, allocations: 31.73 kB / 408.4 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.3573, allocations: 12 kB / 408.4 MB, free: 0.8164 MB / 318.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.0001653/0.3575, allocations: 157.7 kB / 408.6 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/0.3575, allocations: 19.88 kB / 408.6 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003516/0.3579, allocations: 186.4 kB / 408.8 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.3579, allocations: 8 kB / 408.8 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3579, allocations: 0 / 408.8 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.3579, allocations: 3.938 kB / 408.8 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000745/0.3587, allocations: 0.591 MB / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3587, allocations: 4 kB / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.126e-05/0.3588, allocations: 11.98 kB / 409.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.3588, allocations: 4 kB / 409.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.3588, allocations: 7.938 kB / 409.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.3588, allocations: 4 kB / 409.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3588, allocations: 7.984 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003335/0.3592, allocations: 288 kB / 409.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.518e-05/0.3592, allocations: 96.95 kB / 409.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.3593, allocations: 7.938 kB / 409.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.505e-05/0.3593, allocations: 4 kB / 409.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.3594, allocations: 23.97 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.3594, allocations: 11.98 kB / 409.8 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.581e-05/0.3595, allocations: 99.27 kB / 409.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3595, allocations: 0 / 409.9 MB, free: 15.18 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.3598, allocations: 55.75 kB / 410 MB, free: 15.12 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: 20 (transition2.t_start,step.localActive,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (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.0001594/0.36, allocations: 111.1 kB / 410.1 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003373/0.3603, allocations: 188.5 kB / 410.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3604, allocations: 4.125 kB / 410.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.3605, allocations: 96.12 kB / 410.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003015/0.3608, allocations: 23.92 kB / 410.4 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006596/0.3615, allocations: 352.9 kB / 410.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.3619, allocations: 0.7402 MB / 411.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.27e-05/0.362, allocations: 17.95 kB / 411.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.405e-05/0.3621, allocations: 27.42 kB / 411.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3621, allocations: 4 kB / 411.5 MB, free: 13.51 MB / 334.1 MB Notification: Performance of Templates: time 0.00541/0.3675, allocations: 1.906 MB / 413.4 MB, free: 11.61 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches