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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, 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.615/1.615, allocations: 222.9 MB / 240.9 MB, free: 10.99 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.001146/0.001146, allocations: 116.4 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009307/0.0009309, allocations: 43.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3238, allocations: 49.43 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002349/0.3262, allocations: 1.759 MB / 401.2 MB, free: 31.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005855/0.3268, allocations: 307.1 kB / 401.5 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.574e-05/0.3269, allocations: 7.938 kB / 401.5 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.327, allocations: 15.86 kB / 401.5 MB, free: 31.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.781e-05/0.3271, allocations: 9.531 kB / 401.5 MB, free: 31.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002986/0.3274, allocations: 107.8 kB / 401.7 MB, free: 31.17 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002418/0.3276, allocations: 255.5 kB / 401.9 MB, free: 30.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002235/0.3279, allocations: 175.2 kB / 402.1 MB, free: 30.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.879e-05/0.3279, allocations: 79.72 kB / 402.2 MB, free: 30.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.328, allocations: 99.52 kB / 402.2 MB, free: 30.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/0.3281, allocations: 16 kB / 402.3 MB, free: 30.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.632e-05/0.3282, allocations: 24 kB / 402.3 MB, free: 30.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.092e-05/0.3282, allocations: 51.81 kB / 402.3 MB, free: 30.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.192e-05/0.3283, allocations: 95.47 kB / 402.4 MB, free: 30.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.3285, allocations: 216.9 kB / 402.6 MB, free: 30.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3285, allocations: 0 / 402.6 MB, free: 30.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3285, allocations: 7.875 kB / 402.7 MB, free: 30.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.3285, allocations: 4 kB / 402.7 MB, free: 30.16 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.0005424/0.3291, allocations: 498.6 kB / 403.1 MB, free: 29.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.3291, allocations: 11.97 kB / 403.2 MB, free: 29.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.385e-05/0.3292, allocations: 28.66 kB / 403.2 MB, free: 29.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001871/0.3294, allocations: 224.1 kB / 403.4 MB, free: 29.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.525e-05/0.3294, allocations: 24.94 kB / 403.4 MB, free: 29.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.3294, allocations: 24.38 kB / 403.4 MB, free: 29.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.3298, allocations: 282.5 kB / 403.7 MB, free: 28.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3298, allocations: 192 / 403.7 MB, free: 28.98 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.145e-05/0.3299, allocations: 7.938 kB / 403.7 MB, free: 28.97 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.3299, allocations: 8 kB / 403.7 MB, free: 28.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.3301, allocations: 165.6 kB / 403.9 MB, free: 28.8 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000837/0.331, allocations: 0.9826 MB / 404.9 MB, free: 27.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.3312, allocations: 174.2 kB / 405.1 MB, free: 27.56 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.388e-05/0.3313, allocations: 81.62 kB / 405.1 MB, free: 27.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.355e-05/0.3313, allocations: 8 kB / 405.1 MB, free: 27.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.3316, allocations: 139.2 kB / 405.3 MB, free: 27.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.3316, allocations: 0 / 405.3 MB, free: 27.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003495/0.3319, allocations: 228.8 kB / 405.5 MB, free: 27.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.635e-05/0.332, allocations: 89.09 kB / 405.6 MB, free: 26.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.61e-05/0.3321, allocations: 160.6 kB / 405.7 MB, free: 26.82 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.3321, allocations: 33.7 kB / 405.8 MB, free: 26.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.989e-05/0.3322, allocations: 140.5 kB / 405.9 MB, free: 26.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.538e-05/0.3322, allocations: 67.17 kB / 406 MB, free: 26.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.711e-05/0.3323, allocations: 77.69 kB / 406.1 MB, free: 26.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.016e-05/0.3323, allocations: 330.8 kB / 406.4 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.746e-05/0.3324, allocations: 59.97 kB / 406.4 MB, free: 26.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.3326, allocations: 152.5 kB / 406.6 MB, free: 25.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.3328, allocations: 193 kB / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/0.3328, allocations: 0 / 406.8 MB, free: 25.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002958/0.3331, allocations: 253.3 kB / 407 MB, free: 25.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.44e-05/0.3331, allocations: 8 kB / 407 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3331, allocations: 0 / 407 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.3331, allocations: 4 kB / 407 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.3333, allocations: 39.86 kB / 407.1 MB, free: 25.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.3333, allocations: 7.938 kB / 407.1 MB, free: 25.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.338e-05/0.3334, allocations: 23.75 kB / 407.1 MB, free: 25.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3334, allocations: 15.98 kB / 407.1 MB, free: 25.35 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.0001068/0.3335, allocations: 169.8 kB / 407.3 MB, free: 25.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.773e-05/0.3336, allocations: 23.8 kB / 407.3 MB, free: 25.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002745/0.3338, allocations: 186.3 kB / 407.5 MB, free: 24.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3338, allocations: 4 kB / 407.5 MB, free: 24.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3339, allocations: 0 / 407.5 MB, free: 24.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.3339, allocations: 0 / 407.5 MB, free: 24.96 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000521/0.3344, allocations: 0.5962 MB / 408.1 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3344, allocations: 4 kB / 408.1 MB, free: 24.3 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.498e-05/0.3345, allocations: 19.92 kB / 408.1 MB, free: 24.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3345, allocations: 7.938 kB / 408.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.3345, allocations: 0 / 408.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3345, allocations: 7.984 kB / 408.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.3345, allocations: 0 / 408.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000475/0.335, allocations: 0.9045 MB / 409 MB, free: 23.3 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.858e-05/0.335, allocations: 92.86 kB / 409.1 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.434e-05/0.3351, allocations: 12 kB / 409.1 MB, free: 23.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.964e-05/0.3352, allocations: 7.984 kB / 409.1 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.958e-05/0.3352, allocations: 19.97 kB / 409.2 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.3352, allocations: 8 kB / 409.2 MB, free: 23.14 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.031e-05/0.3353, allocations: 95.27 kB / 409.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3353, allocations: 4 kB / 409.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003633/0.3357, allocations: 51.84 kB / 409.3 MB, free: 23 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.0001501/0.3358, allocations: 115.1 kB / 409.4 MB, free: 22.88 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002737/0.3361, allocations: 191.7 kB / 409.6 MB, free: 22.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3361, allocations: 0 / 409.6 MB, free: 22.69 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.3362, allocations: 84.47 kB / 409.7 MB, free: 22.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.3365, allocations: 24.05 kB / 409.7 MB, free: 22.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006815/0.3372, allocations: 0.5909 MB / 410.3 MB, free: 21.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.3374, allocations: 0.7404 MB / 411.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.624e-05/0.3375, allocations: 29.92 kB / 411.1 MB, free: 21.16 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.4e-05/0.3376, allocations: 19.44 kB / 411.1 MB, free: 21.14 MB / 298.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3376, allocations: 4 kB / 411.1 MB, free: 21.13 MB / 298.7 MB Notification: Performance of Templates: time 0.004383/0.342, allocations: 1.833 MB / 412.9 MB, free: 19.31 MB / 298.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches