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.00183/0.00183, allocations: 108.1 kB / 17.06 MB, free: 5.82 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.002058/0.002058, allocations: 195.9 kB / 18 MB, free: 4.965 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.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 51.91 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2837, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002625/0.2864, allocations: 1.473 MB / 401.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006992/0.2871, allocations: 279.2 kB / 402 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.99e-05/0.2872, allocations: 7.844 kB / 402 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.2874, allocations: 22.42 kB / 402 MB, free: 7.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.198e-05/0.2874, allocations: 16.88 kB / 402 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004735/0.2879, allocations: 114 kB / 402.1 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003321/0.2882, allocations: 266 kB / 402.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002956/0.2886, allocations: 172.9 kB / 402.5 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.2887, allocations: 83.77 kB / 402.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001375/0.2888, allocations: 95.55 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.984e-05/0.2889, allocations: 27.94 kB / 402.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.958e-05/0.2889, allocations: 31.98 kB / 402.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.473e-05/0.289, allocations: 51.89 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.2891, allocations: 95.53 kB / 402.9 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003161/0.2894, allocations: 249.9 kB / 403.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2895, allocations: 0 / 403.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2895, allocations: 0 / 403.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.299e-05/0.2895, allocations: 4 kB / 403.2 MB, free: 5.859 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.0006793/0.2902, allocations: 486.3 kB / 403.6 MB, free: 5.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.2902, allocations: 8.031 kB / 403.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.42e-05/0.2903, allocations: 58.73 kB / 403.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.811e-05/0.2903, allocations: 28.78 kB / 403.7 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003124/0.2907, allocations: 228 kB / 404 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.2907, allocations: 16.94 kB / 404 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.202e-05/0.2908, allocations: 36.3 kB / 404 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.2912, allocations: 244 kB / 404.2 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.2912, allocations: 3.938 kB / 404.3 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.2912, allocations: 8 kB / 404.3 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.2913, allocations: 4 kB / 404.3 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002988/0.2916, allocations: 161.6 kB / 404.4 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009879/0.2926, allocations: 0.6975 MB / 405.1 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.2929, allocations: 166.8 kB / 405.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.293, allocations: 80.83 kB / 405.4 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.098e-05/0.293, allocations: 11.92 kB / 405.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000209/0.2933, allocations: 119.3 kB / 405.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.044e-06/0.2933, allocations: 0 / 405.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004499/0.2937, allocations: 215 kB / 405.7 MB, free: 3.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.151e-05/0.2938, allocations: 59.41 kB / 405.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.2939, allocations: 148.7 kB / 405.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.294, allocations: 41.64 kB / 405.9 MB, free: 2.863 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.795e-05/0.2941, allocations: 132.8 kB / 406.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.721e-05/0.2941, allocations: 67.52 kB / 406.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/0.2943, allocations: 81.95 kB / 406.2 MB, free: 2.574 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.2944, allocations: 326.8 kB / 406.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.2945, allocations: 60.62 kB / 406.6 MB, free: 2.188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001625/0.2947, allocations: 124.1 kB / 406.7 MB, free: 2.043 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.295, allocations: 175.2 kB / 406.9 MB, free: 1.848 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.264e-06/0.295, allocations: 8 kB / 406.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003786/0.2954, allocations: 253.2 kB / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.2954, allocations: 4 kB / 407.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.2954, allocations: 4 kB / 407.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.2954, allocations: 4 kB / 407.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.2956, allocations: 31.92 kB / 407.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.155e-05/0.2956, allocations: 7.938 kB / 407.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.524e-05/0.2957, allocations: 23.83 kB / 407.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/0.2957, allocations: 16.2 kB / 407.2 MB, free: 1.496 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.000151/0.2959, allocations: 153.7 kB / 407.4 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.2959, allocations: 15.91 kB / 407.4 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003561/0.2963, allocations: 198.3 kB / 407.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.2963, allocations: 0 / 407.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.2963, allocations: 0 / 407.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.702e-06/0.2963, allocations: 4 kB / 407.6 MB, free: 1.117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007443/0.2971, allocations: 0.5725 MB / 408.2 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.2971, allocations: 0 / 408.2 MB, free: 500 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.519e-05/0.2972, allocations: 19.98 kB / 408.2 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.2972, allocations: 0 / 408.2 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/0.2972, allocations: 7.938 kB / 408.2 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.2972, allocations: 4 kB / 408.2 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2972, allocations: 3.938 kB / 408.2 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003251/0.2976, allocations: 275.3 kB / 408.5 MB, free: 172 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.544e-05/0.2976, allocations: 93 kB / 408.6 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.987e-05/0.2977, allocations: 8 kB / 408.6 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.756e-05/0.2977, allocations: 15.97 kB / 408.6 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-05/0.2978, allocations: 23.91 kB / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.2979, allocations: 12 kB / 408.6 MB, free: 0 / 318.1 MB Notification: Performance of sorting global known variables: time 7.767e-05/0.2979, allocations: 91.34 kB / 408.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2979, allocations: 0 / 408.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002903/0.2982, allocations: 51.89 kB / 408.8 MB, free: 15.86 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.0006631/0.2989, allocations: 0.822 MB / 409.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003337/0.2993, allocations: 187.9 kB / 409.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2993, allocations: 0 / 409.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000136/0.2994, allocations: 87.84 kB / 409.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002801/0.2997, allocations: 20.38 kB / 409.9 MB, free: 14.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002188/0.3019, allocations: 2.015 MB / 411.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/0.3023, allocations: 0.7324 MB / 412.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.937e-05/0.3023, allocations: 21.94 kB / 412.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.3025, allocations: 63.34 kB / 412.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3025, allocations: 0 / 412.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02541/0.3279, allocations: 3.664 MB / 416.4 MB, free: 8.152 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.914/8.242, allocations: 15.86 kB / 416.4 MB, free: 8.137 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