Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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: "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 113.6 kB / 17.06 MB, free: 6.012 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.001918/0.001918, allocations: 191 kB / 18 MB, free: 5.098 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.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001067/0.001067, allocations: 47.92 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.2998, allocations: 49.44 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.0028/0.3027, allocations: 1.477 MB / 401.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006658/0.3033, allocations: 278.6 kB / 402 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.388e-05/0.3035, allocations: 7.562 kB / 402 MB, free: 7.051 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.3036, allocations: 26.77 kB / 402 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.497e-05/0.3037, allocations: 13.97 kB / 402 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.3041, allocations: 113.6 kB / 402.1 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002955/0.3044, allocations: 265.9 kB / 402.4 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.3047, allocations: 173.9 kB / 402.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.82e-05/0.3048, allocations: 79.78 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.3049, allocations: 103.5 kB / 402.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.504e-05/0.3049, allocations: 24 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.965e-05/0.305, allocations: 31.94 kB / 402.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.524e-05/0.3051, allocations: 51.91 kB / 402.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.602e-05/0.3052, allocations: 99.5 kB / 402.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.3055, allocations: 246 kB / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.3055, allocations: 0 / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3055, allocations: 0 / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.84e-06/0.3055, allocations: 0 / 403.2 MB, free: 5.887 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006313/0.3062, allocations: 486.3 kB / 403.6 MB, free: 5.359 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.3062, allocations: 8.031 kB / 403.7 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.604e-05/0.3063, allocations: 66.72 kB / 403.7 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.191e-05/0.3063, allocations: 24.8 kB / 403.7 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.3066, allocations: 224.1 kB / 404 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.666e-05/0.3067, allocations: 28.8 kB / 404 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.3067, allocations: 28.38 kB / 404 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.3071, allocations: 236 kB / 404.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3071, allocations: 3.938 kB / 404.2 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.3072, allocations: 12 kB / 404.3 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.3072, allocations: 8 kB / 404.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002886/0.3075, allocations: 157.7 kB / 404.4 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009296/0.3084, allocations: 0.7014 MB / 405.1 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.3087, allocations: 170.8 kB / 405.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001166/0.3088, allocations: 82.14 kB / 405.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.3089, allocations: 11.92 kB / 405.4 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/0.3091, allocations: 115.3 kB / 405.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.863e-06/0.3091, allocations: 0 / 405.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004047/0.3095, allocations: 211.1 kB / 405.7 MB, free: 3.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.3096, allocations: 59.34 kB / 405.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.3097, allocations: 154 kB / 405.9 MB, free: 2.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.3097, allocations: 33.7 kB / 405.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.212e-05/0.3098, allocations: 136.8 kB / 406.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.709e-05/0.3099, allocations: 63.52 kB / 406.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.99e-05/0.31, allocations: 81.91 kB / 406.2 MB, free: 2.602 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3101, allocations: 322.8 kB / 406.5 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001104/0.3102, allocations: 60.62 kB / 406.6 MB, free: 2.219 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.3104, allocations: 136.1 kB / 406.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/0.3106, allocations: 171.2 kB / 406.9 MB, free: 1.871 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.177e-06/0.3106, allocations: 4 kB / 406.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000368/0.311, allocations: 249.2 kB / 407.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.311, allocations: 8 kB / 407.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.311, allocations: 0 / 407.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.311, allocations: 8.219 kB / 407.2 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.3112, allocations: 31.86 kB / 407.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/0.3112, allocations: 4 kB / 407.2 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.525e-05/0.3113, allocations: 31.81 kB / 407.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.504e-05/0.3113, allocations: 8 kB / 407.2 MB, free: 1.527 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001427/0.3115, allocations: 153.7 kB / 407.4 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.53e-05/0.3115, allocations: 19.89 kB / 407.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003459/0.3119, allocations: 202.3 kB / 407.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.3119, allocations: 4 kB / 407.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3119, allocations: 0 / 407.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3119, allocations: 4 kB / 407.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.3126, allocations: 0.5647 MB / 408.2 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3126, allocations: 4 kB / 408.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.607e-05/0.3127, allocations: 19.98 kB / 408.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.3127, allocations: 0 / 408.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.3127, allocations: 0 / 408.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3127, allocations: 4 kB / 408.2 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.3127, allocations: 7.938 kB / 408.2 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002982/0.313, allocations: 283.2 kB / 408.5 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.078e-05/0.3131, allocations: 89 kB / 408.6 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.3131, allocations: 11.98 kB / 408.6 MB, free: 72 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-05/0.3132, allocations: 8 kB / 408.6 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.877e-05/0.3133, allocations: 23.91 kB / 408.6 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.3133, allocations: 8 kB / 408.6 MB, free: 32 kB / 318.1 MB Notification: Performance of sorting global known variables: time 7.396e-05/0.3134, allocations: 97.52 kB / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3134, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002871/0.3137, allocations: 51.89 kB / 408.8 MB, free: 15.89 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0006015/0.3143, allocations: 0.8181 MB / 409.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003037/0.3146, allocations: 188.1 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3146, allocations: 0 / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.3147, allocations: 87.84 kB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.315, allocations: 23.88 kB / 409.9 MB, free: 14.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002215/0.3172, allocations: 2.012 MB / 411.9 MB, free: 12.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.3176, allocations: 0.7363 MB / 412.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.209e-05/0.3177, allocations: 29.89 kB / 412.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000102/0.3178, allocations: 59.41 kB / 412.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of SimCode: time 4e-07/0.3178, allocations: 0 / 412.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.3408, allocations: 3.654 MB / 416.4 MB, free: 8.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.643/7.984, allocations: 15.16 kB / 416.4 MB, free: 8.168 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv --start-time 0 --stop-time 5.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0022 Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches