Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002146/0.002147, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.612/1.612, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 115.1 kB / 291.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001001/0.001001, allocations: 35.94 kB / 350 MB, free: 76 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3042, allocations: 49.44 MB / 399.5 MB, free: 33.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003242/0.3075, allocations: 1.778 MB / 401.2 MB, free: 31.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008349/0.3083, allocations: 307.1 kB / 401.5 MB, free: 31.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.3086, allocations: 7.938 kB / 401.6 MB, free: 31.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001448/0.3087, allocations: 21.62 kB / 401.6 MB, free: 31.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.308e-05/0.3088, allocations: 7.922 kB / 401.6 MB, free: 31.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000414/0.3092, allocations: 107.8 kB / 401.7 MB, free: 31.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002896/0.3095, allocations: 251.5 kB / 401.9 MB, free: 30.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002737/0.3098, allocations: 173.9 kB / 402.1 MB, free: 30.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.533e-05/0.3099, allocations: 87.7 kB / 402.2 MB, free: 30.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001219/0.31, allocations: 95.53 kB / 402.3 MB, free: 30.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.327e-05/0.3101, allocations: 16 kB / 402.3 MB, free: 30.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.155e-05/0.3101, allocations: 20 kB / 402.3 MB, free: 30.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.748e-05/0.3102, allocations: 55.81 kB / 402.4 MB, free: 30.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.935e-05/0.3103, allocations: 95.47 kB / 402.5 MB, free: 30.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002064/0.3105, allocations: 207.3 kB / 402.7 MB, free: 30.14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.251e-06/0.3105, allocations: 0 / 402.7 MB, free: 30.14 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3105, allocations: 4 kB / 402.7 MB, free: 30.14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.3105, allocations: 4 kB / 402.7 MB, free: 30.14 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.0006718/0.3112, allocations: 0.4924 MB / 403.2 MB, free: 29.59 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.3113, allocations: 12.03 kB / 403.2 MB, free: 29.58 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.431e-05/0.3113, allocations: 24.66 kB / 403.2 MB, free: 29.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/0.3116, allocations: 224.1 kB / 403.4 MB, free: 29.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.896e-05/0.3116, allocations: 24.94 kB / 403.4 MB, free: 29.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.3117, allocations: 24.38 kB / 403.5 MB, free: 29.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003902/0.3121, allocations: 282.5 kB / 403.7 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3121, allocations: 192 / 403.7 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.3121, allocations: 7.938 kB / 403.8 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3121, allocations: 8 kB / 403.8 MB, free: 28.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000262/0.3124, allocations: 161.6 kB / 403.9 MB, free: 28.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009971/0.3134, allocations: 0.9826 MB / 404.9 MB, free: 27.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002513/0.3137, allocations: 173.4 kB / 405.1 MB, free: 27.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.983e-05/0.3138, allocations: 81.58 kB / 405.1 MB, free: 27.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.684e-05/0.3138, allocations: 11.98 kB / 405.2 MB, free: 27.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.3141, allocations: 135.3 kB / 405.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.333e-06/0.3141, allocations: 0 / 405.3 MB, free: 27.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003941/0.3145, allocations: 228.8 kB / 405.5 MB, free: 27.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.3146, allocations: 85.11 kB / 405.6 MB, free: 26.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.3147, allocations: 149 kB / 405.7 MB, free: 26.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.3147, allocations: 41.7 kB / 405.8 MB, free: 26.77 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.352e-05/0.3148, allocations: 148.5 kB / 405.9 MB, free: 26.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.3148, allocations: 59.14 kB / 406 MB, free: 26.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.757e-05/0.3149, allocations: 81.67 kB / 406.1 MB, free: 26.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.514e-05/0.315, allocations: 330.8 kB / 406.4 MB, free: 26.15 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.541e-05/0.3151, allocations: 63.97 kB / 406.5 MB, free: 26.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.3152, allocations: 140.5 kB / 406.6 MB, free: 25.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001866/0.3154, allocations: 189 kB / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3154, allocations: 0 / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002881/0.3157, allocations: 261.4 kB / 407 MB, free: 25.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3157, allocations: 8 kB / 407 MB, free: 25.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.3157, allocations: 0 / 407 MB, free: 25.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.3158, allocations: 4 kB / 407 MB, free: 25.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.3159, allocations: 35.86 kB / 407.1 MB, free: 25.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.3159, allocations: 7.984 kB / 407.1 MB, free: 25.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.823e-05/0.316, allocations: 35.67 kB / 407.1 MB, free: 25.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.531e-05/0.316, allocations: 8 kB / 407.1 MB, free: 25.34 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.0001122/0.3162, allocations: 169.8 kB / 407.3 MB, free: 25.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.906e-05/0.3162, allocations: 11.91 kB / 407.3 MB, free: 25.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002989/0.3165, allocations: 194.3 kB / 407.5 MB, free: 24.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3165, allocations: 4 kB / 407.5 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3165, allocations: 0 / 407.5 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3165, allocations: 7.969 kB / 407.5 MB, free: 24.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006088/0.3171, allocations: 0.6 MB / 408.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.3172, allocations: 0 / 408.1 MB, free: 24.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.283e-05/0.3172, allocations: 12 kB / 408.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.3172, allocations: 7.938 kB / 408.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.3173, allocations: 7.984 kB / 408.1 MB, free: 24.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.3173, allocations: 7.938 kB / 408.1 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3173, allocations: 0 / 408.1 MB, free: 24.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005317/0.3178, allocations: 0.8968 MB / 409 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.897e-05/0.3179, allocations: 89.02 kB / 409.1 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.3179, allocations: 4 kB / 409.1 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.492e-05/0.318, allocations: 11.98 kB / 409.1 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.011e-05/0.3181, allocations: 19.97 kB / 409.2 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.36e-05/0.3181, allocations: 12 kB / 409.2 MB, free: 23.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.35e-05/0.3181, allocations: 95.27 kB / 409.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.3182, allocations: 4 kB / 409.3 MB, free: 23.04 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003791/0.3185, allocations: 55.78 kB / 409.3 MB, free: 22.99 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,transition1.enableFire,step.localActive,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.0001361/0.3187, allocations: 119 kB / 409.4 MB, free: 22.86 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002597/0.3189, allocations: 183.7 kB / 409.6 MB, free: 22.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.319, allocations: 0 / 409.6 MB, free: 22.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.3191, allocations: 84.47 kB / 409.7 MB, free: 22.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.3193, allocations: 35.83 kB / 409.7 MB, free: 22.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006612/0.32, allocations: 0.5753 MB / 410.3 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002/0.3202, allocations: 0.7443 MB / 411.1 MB, free: 21.18 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.216e-05/0.3203, allocations: 25.94 kB / 411.1 MB, free: 21.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.368e-05/0.3204, allocations: 23.44 kB / 411.1 MB, free: 21.13 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3204, allocations: 0 / 411.1 MB, free: 21.13 MB / 298.7 MB Notification: Performance of Templates: time 0.004755/0.3251, allocations: 1.824 MB / 412.9 MB, free: 19.32 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches