Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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_Variant3,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant3,fileNamePrefix="Modelica_4_0_0_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.001218/0.001218, allocations: 110.2 kB / 17.06 MB, free: 5.793 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.001184/0.001185, allocations: 197.3 kB / 18.01 MB, free: 4.918 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.367/1.367, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 39.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2627, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003006/0.2657, allocations: 1.691 MB / 401.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006627/0.2664, allocations: 287.4 kB / 402.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.927e-05/0.2665, allocations: 11.88 kB / 402.2 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001292/0.2667, allocations: 23.73 kB / 402.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.508e-05/0.2667, allocations: 19.75 kB / 402.2 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003669/0.2671, allocations: 119.8 kB / 402.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003177/0.2674, allocations: 271.4 kB / 402.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003181/0.2678, allocations: 185.6 kB / 402.8 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.2679, allocations: 87.7 kB / 402.9 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001469/0.268, allocations: 103.5 kB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.2681, allocations: 27.94 kB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.461e-05/0.2682, allocations: 28 kB / 403 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.069e-05/0.2682, allocations: 63.81 kB / 403.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001074/0.2683, allocations: 99.53 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.2687, allocations: 257.9 kB / 403.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2687, allocations: 0 / 403.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.2687, allocations: 4 kB / 403.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.2687, allocations: 0 / 403.5 MB, free: 5.559 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.0007467/0.2695, allocations: 0.4906 MB / 404 MB, free: 5.012 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2695, allocations: 8.031 kB / 404 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.555e-05/0.2696, allocations: 58.72 kB / 404 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.748e-05/0.2697, allocations: 24.8 kB / 404 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003315/0.27, allocations: 228.1 kB / 404.3 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.162e-05/0.2701, allocations: 24.94 kB / 404.3 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.672e-05/0.2701, allocations: 32.38 kB / 404.3 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004656/0.2706, allocations: 278.5 kB / 404.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.2706, allocations: 3.938 kB / 404.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/0.2706, allocations: 12 kB / 404.6 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.2706, allocations: 8 kB / 404.6 MB, free: 4.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003034/0.271, allocations: 165.6 kB / 404.8 MB, free: 4.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.2722, allocations: 0.9674 MB / 405.7 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003089/0.2725, allocations: 173.4 kB / 405.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.2726, allocations: 83.19 kB / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.2726, allocations: 4 kB / 406 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.2729, allocations: 141 kB / 406.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.834e-06/0.2729, allocations: 0 / 406.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004877/0.2734, allocations: 223 kB / 406.4 MB, free: 2.434 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.54e-05/0.2735, allocations: 81.11 kB / 406.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.2736, allocations: 156.3 kB / 406.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.381e-05/0.2737, allocations: 37.69 kB / 406.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.2738, allocations: 144.8 kB / 406.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.633e-05/0.2738, allocations: 63.48 kB / 406.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.2739, allocations: 81.8 kB / 406.9 MB, free: 1.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2741, allocations: 334.7 kB / 407.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2742, allocations: 59.97 kB / 407.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.2744, allocations: 144.3 kB / 407.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002645/0.2747, allocations: 204.8 kB / 407.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2747, allocations: 3.938 kB / 407.6 MB, free: 1.039 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003781/0.2751, allocations: 249.3 kB / 407.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2751, allocations: 8 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2751, allocations: 0 / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.2751, allocations: 8.281 kB / 407.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.2753, allocations: 39.91 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.181e-05/0.2753, allocations: 7.938 kB / 407.9 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001033/0.2754, allocations: 23.84 kB / 408 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.2754, allocations: 8 kB / 408 MB, free: 0.6953 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: 32 ($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,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.0001525/0.2756, allocations: 169.6 kB / 408.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.396e-05/0.2756, allocations: 11.91 kB / 408.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003348/0.276, allocations: 202.3 kB / 408.4 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.276, allocations: 8 kB / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.276, allocations: 0 / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.276, allocations: 0 / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007512/0.2768, allocations: 0.5909 MB / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2768, allocations: 0 / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.469e-05/0.2768, allocations: 19.92 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.79e-06/0.2769, allocations: 3.938 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.726e-05/0.2769, allocations: 8 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2769, allocations: 0 / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2769, allocations: 4 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003685/0.2773, allocations: 291.9 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.835e-05/0.2773, allocations: 89 kB / 409.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.221e-05/0.2774, allocations: 11.92 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.913e-05/0.2775, allocations: 8 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.92e-05/0.2775, allocations: 19.97 kB / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.2776, allocations: 12 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.075e-05/0.2776, allocations: 95.27 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2777, allocations: 0 / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003091/0.278, allocations: 55.84 kB / 409.6 MB, free: 15 MB / 334.1 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.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: 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.0006656/0.2786, allocations: 0.8385 MB / 410.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003404/0.279, allocations: 187.9 kB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.279, allocations: 0 / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.2791, allocations: 83.91 kB / 410.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.2794, allocations: 31.02 kB / 410.7 MB, free: 13.83 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.2818, allocations: 2.074 MB / 412.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003716/0.2822, allocations: 0.7363 MB / 413.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.85e-05/0.2823, allocations: 33.94 kB / 413.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.2825, allocations: 67.34 kB / 413.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2825, allocations: 0 / 413.6 MB, free: 10.74 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02549/0.308, allocations: 3.713 MB / 417.3 MB, free: 7.117 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.912/8.22, allocations: 7.656 kB / 417.3 MB, free: 7.113 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_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_Variant3.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches