Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3",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.001389/0.001389, allocations: 109.4 kB / 17.73 MB, free: 5.355 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.001254/0.001254, allocations: 184.1 kB / 18.66 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.455/1.455, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001782/0.001782, allocations: 51.92 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.107, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003714/0.1107, allocations: 1.683 MB / 376.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008038/0.1116, allocations: 260.1 kB / 376.6 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001625/0.1118, allocations: 11.94 kB / 376.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.112, allocations: 27.67 kB / 376.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.904e-05/0.1121, allocations: 15.81 kB / 376.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004732/0.1125, allocations: 111.8 kB / 376.7 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003992/0.113, allocations: 263.5 kB / 377 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003867/0.1134, allocations: 193.5 kB / 377.2 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001283/0.1135, allocations: 91.64 kB / 377.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.1137, allocations: 95.53 kB / 377.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.944e-05/0.1137, allocations: 24 kB / 377.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.1138, allocations: 36 kB / 377.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.114, allocations: 59.81 kB / 377.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.1141, allocations: 103.5 kB / 377.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000414/0.1145, allocations: 250.9 kB / 377.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1145, allocations: 0 / 377.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1145, allocations: 4 kB / 377.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.1146, allocations: 0 / 377.8 MB, free: 1.891 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008926/0.1155, allocations: 497.8 kB / 378.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1155, allocations: 8.031 kB / 378.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.364e-05/0.1156, allocations: 58.67 kB / 378.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.154e-05/0.1157, allocations: 28.8 kB / 378.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004255/0.1161, allocations: 228.1 kB / 378.6 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.318e-05/0.1162, allocations: 24.94 kB / 378.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/0.1162, allocations: 28.38 kB / 378.7 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005291/0.1168, allocations: 274.5 kB / 378.9 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1168, allocations: 11.94 kB / 379 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.705e-05/0.1168, allocations: 8 kB / 379 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.082e-05/0.1169, allocations: 8 kB / 379 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003576/0.1172, allocations: 165.6 kB / 379.1 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2027/0.32, allocations: 0.9603 MB / 380.1 MB, free: 12.29 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003656/0.3204, allocations: 156.8 kB / 380.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.3205, allocations: 73.31 kB / 380.3 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.263e-05/0.3206, allocations: 5.719 kB / 380.3 MB, free: 12.26 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002685/0.3209, allocations: 119.2 kB / 380.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.497e-06/0.3209, allocations: 0 / 380.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.0004549/0.3213, allocations: 211.9 kB / 380.6 MB, free: 12.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.3214, allocations: 56.88 kB / 380.7 MB, free: 12.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.3215, allocations: 153.6 kB / 380.9 MB, free: 12.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.3216, allocations: 39.19 kB / 380.9 MB, free: 11.98 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.803e-05/0.3216, allocations: 144 kB / 381 MB, free: 11.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.619e-05/0.3217, allocations: 64.94 kB / 381.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3218, allocations: 78.05 kB / 381.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.3219, allocations: 333.2 kB / 381.5 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.322, allocations: 61.41 kB / 381.6 MB, free: 11.51 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.3222, allocations: 146.2 kB / 381.7 MB, free: 11.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002267/0.3224, allocations: 183.6 kB / 381.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3224, allocations: 1.375 kB / 381.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003759/0.3228, allocations: 252.7 kB / 382.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/0.3229, allocations: 6.484 kB / 382.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.3229, allocations: 2.75 kB / 382.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.3229, allocations: 4.125 kB / 382.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.323, allocations: 33.03 kB / 382.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.647e-05/0.3231, allocations: 12.12 kB / 382.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.3232, allocations: 32.12 kB / 382.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.483e-05/0.3232, allocations: 16.11 kB / 382.2 MB, free: 11.29 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,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,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 (40): * Single equations (assignments): 40 * 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.0001481/0.3234, allocations: 158.4 kB / 382.4 MB, free: 11.16 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.035e-05/0.3234, allocations: 14.69 kB / 382.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003841/0.3238, allocations: 186.9 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.3239, allocations: 3.156 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.3239, allocations: 6 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.3239, allocations: 5.703 kB / 382.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008024/0.3247, allocations: 0.5859 MB / 383.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3247, allocations: 0.6562 kB / 383.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.546e-05/0.3248, allocations: 22.77 kB / 383.2 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3248, allocations: 1.094 kB / 383.2 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.3248, allocations: 1.922 kB / 383.2 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.3248, allocations: 2.359 kB / 383.2 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3248, allocations: 0 / 383.2 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003299/0.3252, allocations: 282.9 kB / 383.5 MB, free: 10.53 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.866e-05/0.3252, allocations: 94.48 kB / 383.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.464e-05/0.3253, allocations: 8.234 kB / 383.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.289e-05/0.3254, allocations: 8.547 kB / 383.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.2e-05/0.3254, allocations: 21.89 kB / 383.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.3255, allocations: 5.875 kB / 383.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.452e-05/0.3255, allocations: 101 kB / 383.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3255, allocations: 0 / 383.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003315/0.3258, allocations: 51.61 kB / 383.8 MB, free: 10.32 MB / 318.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 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * 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.0005204/0.3264, allocations: 0.8254 MB / 384.6 MB, free: 9.598 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003466/0.3267, allocations: 188.9 kB / 384.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.3267, allocations: 0 / 384.8 MB, free: 9.539 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.3269, allocations: 83.97 kB / 384.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002949/0.3272, allocations: 24.77 kB / 384.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.3292, allocations: 2.051 MB / 386.9 MB, free: 7.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.3294, allocations: 0.7366 MB / 387.7 MB, free: 7.156 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.464e-05/0.3295, allocations: 25.59 kB / 387.7 MB, free: 7.152 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001085/0.3296, allocations: 63.72 kB / 387.8 MB, free: 7.109 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3296, allocations: 0 / 387.8 MB, free: 7.109 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.3599, allocations: 3.665 MB / 391.4 MB, free: 6.434 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.806/9.166, allocations: 25.09 kB / 391.5 MB, free: 6.41 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_3_2_3_Modelica_StateGraph_Examples_FirstExample_Variant3.fmu > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches