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.001453/0.001453, allocations: 107.7 kB / 17.06 MB, free: 5.996 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.001272/0.001272, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 47.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2871, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003107/0.2902, allocations: 1.476 MB / 401.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008144/0.2911, allocations: 278.9 kB / 402 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.2912, allocations: 8 kB / 402 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001928/0.2914, allocations: 17.97 kB / 402 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.809e-05/0.2916, allocations: 25.81 kB / 402 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.2921, allocations: 113.5 kB / 402.1 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000356/0.2924, allocations: 263.9 kB / 402.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003215/0.2928, allocations: 165.9 kB / 402.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.2929, allocations: 87.75 kB / 402.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001433/0.293, allocations: 95.55 kB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.97e-05/0.2931, allocations: 20 kB / 402.7 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.981e-05/0.2932, allocations: 35.94 kB / 402.8 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.006e-05/0.2933, allocations: 51.88 kB / 402.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.2934, allocations: 99.53 kB / 402.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003271/0.2937, allocations: 246 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2937, allocations: 0 / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2937, allocations: 0 / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.2937, allocations: 0 / 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.0007576/0.2945, allocations: 490.3 kB / 403.6 MB, free: 5.328 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.2945, allocations: 12.03 kB / 403.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.473e-05/0.2946, allocations: 58.73 kB / 403.7 MB, free: 5.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001001/0.2947, allocations: 20.8 kB / 403.7 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.2951, allocations: 240 kB / 404 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.593e-05/0.2952, allocations: 24.88 kB / 404 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.963e-05/0.2952, allocations: 24.38 kB / 404 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004254/0.2956, allocations: 244 kB / 404.2 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.2957, allocations: 3.938 kB / 404.3 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.2957, allocations: 8 kB / 404.3 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2957, allocations: 4 kB / 404.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/0.296, allocations: 161.6 kB / 404.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.297, allocations: 0.6975 MB / 405.1 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.2974, allocations: 166.8 kB / 405.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001222/0.2975, allocations: 82.33 kB / 405.4 MB, free: 3.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.2975, allocations: 7.938 kB / 405.4 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.2978, allocations: 123 kB / 405.5 MB, free: 3.344 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.043e-06/0.2978, allocations: 0 / 405.5 MB, free: 3.344 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005505/0.2983, allocations: 213.4 kB / 405.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.915e-05/0.2984, allocations: 63.39 kB / 405.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.2985, allocations: 145.1 kB / 405.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.2986, allocations: 41.69 kB / 405.9 MB, free: 2.859 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.991e-05/0.2987, allocations: 136.8 kB / 406.1 MB, free: 2.723 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.219e-05/0.2987, allocations: 63.52 kB / 406.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.2989, allocations: 81.95 kB / 406.2 MB, free: 2.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.299, allocations: 326.8 kB / 406.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.2991, allocations: 60.62 kB / 406.6 MB, free: 2.184 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.2993, allocations: 128.1 kB / 406.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002609/0.2996, allocations: 179.2 kB / 406.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.2996, allocations: 4 kB / 406.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004096/0.3, allocations: 249.3 kB / 407.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.3, allocations: 4 kB / 407.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.3001, allocations: 4 kB / 407.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.3001, allocations: 4 kB / 407.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.3002, allocations: 36.06 kB / 407.2 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3002, allocations: 8 kB / 407.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.3004, allocations: 23.83 kB / 407.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/0.3004, allocations: 16 kB / 407.2 MB, free: 1.488 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.0001636/0.3006, allocations: 157.7 kB / 407.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.3006, allocations: 11.91 kB / 407.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003467/0.301, allocations: 198.3 kB / 407.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.301, allocations: 4 kB / 407.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.301, allocations: 4 kB / 407.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.301, allocations: 0 / 407.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008238/0.3018, allocations: 0.5686 MB / 408.2 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.3018, allocations: 0 / 408.2 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.607e-05/0.3019, allocations: 12 kB / 408.2 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3019, allocations: 4 kB / 408.2 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.543e-05/0.3019, allocations: 7.984 kB / 408.2 MB, free: 468 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.897e-06/0.302, allocations: 3.938 kB / 408.2 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.302, allocations: 3.938 kB / 408.2 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003187/0.3023, allocations: 283.3 kB / 408.5 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.3023, allocations: 89 kB / 408.6 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/0.3024, allocations: 4 kB / 408.6 MB, free: 48 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.376e-05/0.3025, allocations: 11.98 kB / 408.6 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.3026, allocations: 23.92 kB / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.818e-05/0.3026, allocations: 11.98 kB / 408.6 MB, free: 0 / 318.1 MB Notification: Performance of sorting global known variables: time 8.371e-05/0.3027, allocations: 95.27 kB / 408.7 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3027, allocations: 4 kB / 408.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.303, allocations: 47.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.0006931/0.3037, allocations: 0.822 MB / 409.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.304, allocations: 184.3 kB / 409.8 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3041, allocations: 4.125 kB / 409.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000138/0.3042, 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.0002939/0.3045, allocations: 35.78 kB / 409.9 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.3071, allocations: 2.007 MB / 411.9 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004329/0.3076, allocations: 0.7324 MB / 412.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.292e-05/0.3077, allocations: 29.88 kB / 412.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.3078, allocations: 59.42 kB / 412.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3078, allocations: 0 / 412.7 MB, free: 11.72 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02185/0.3296, allocations: 3.655 MB / 416.4 MB, free: 8.141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.721/8.051, allocations: 7.859 kB / 416.4 MB, free: 8.133 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