Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.StateGraph.Examples.FirstExample_Variant2,fileNamePrefix="Modelica_4_0_0_Modelica_StateGraph_Examples_FirstExample_Variant2",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.001767/0.001767, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001861/0.001861, allocations: 189.4 kB / 18 MB, free: 5.09 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.397/1.397, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 51.91 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2565, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.00281/0.2593, allocations: 1.665 MB / 401.9 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006867/0.26, allocations: 296.3 kB / 402.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.962e-05/0.2601, allocations: 4 kB / 402.2 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.2603, allocations: 31.67 kB / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.502e-05/0.2603, allocations: 15.8 kB / 402.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003728/0.2607, allocations: 115.8 kB / 402.3 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000333/0.2611, allocations: 283.4 kB / 402.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.2613, allocations: 180.7 kB / 402.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.2615, allocations: 95.7 kB / 402.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.2616, allocations: 99.53 kB / 403 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.36e-05/0.2617, allocations: 23.94 kB / 403 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.762e-05/0.2618, allocations: 31.98 kB / 403 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.963e-05/0.2618, allocations: 63.83 kB / 403.1 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.262, allocations: 99.52 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000313/0.2623, allocations: 261.9 kB / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2623, allocations: 0 / 403.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2623, allocations: 4 kB / 403.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.2623, allocations: 0 / 403.4 MB, free: 5.578 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.0006799/0.263, allocations: 0.4905 MB / 403.9 MB, free: 5.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.263, allocations: 12.03 kB / 403.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.184e-05/0.2631, allocations: 62.66 kB / 404 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.649e-05/0.2632, allocations: 24.8 kB / 404 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.2635, allocations: 236 kB / 404.3 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.2635, allocations: 20.94 kB / 404.3 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.179e-05/0.2636, allocations: 32.38 kB / 404.3 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004373/0.264, allocations: 274.5 kB / 404.6 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.264, allocations: 3.938 kB / 404.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/0.2641, allocations: 15.98 kB / 404.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.2641, allocations: 4 kB / 404.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.2644, allocations: 169.6 kB / 404.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001126/0.2655, allocations: 0.9635 MB / 405.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.2658, allocations: 181.3 kB / 405.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.266, allocations: 77.69 kB / 406 MB, free: 2.824 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.266, allocations: 8 kB / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.2662, allocations: 140.7 kB / 406.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.422e-06/0.2662, allocations: 0 / 406.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004495/0.2667, allocations: 221.4 kB / 406.4 MB, free: 2.441 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.2668, allocations: 89.03 kB / 406.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.2669, allocations: 153.7 kB / 406.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.2669, allocations: 41.69 kB / 406.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.474e-05/0.267, allocations: 132.8 kB / 406.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.2e-05/0.2671, allocations: 71.47 kB / 406.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.2672, allocations: 77.81 kB / 406.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.2674, allocations: 330.8 kB / 407.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001196/0.2675, allocations: 63.97 kB / 407.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001782/0.2677, allocations: 144.3 kB / 407.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.268, allocations: 196.8 kB / 407.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.268, allocations: 4 kB / 407.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003804/0.2683, allocations: 253.3 kB / 407.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.2684, allocations: 7.984 kB / 407.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.2684, allocations: 8.281 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.2684, allocations: 8 kB / 407.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001408/0.2686, allocations: 27.92 kB / 407.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.2686, allocations: 7.938 kB / 407.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.601e-05/0.2687, allocations: 27.78 kB / 408 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.007e-05/0.2687, allocations: 19.98 kB / 408 MB, free: 0.6914 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.0001617/0.2689, allocations: 165.6 kB / 408.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.526e-05/0.2689, allocations: 11.91 kB / 408.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003352/0.2693, allocations: 202.3 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2693, allocations: 0 / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2693, allocations: 4 kB / 408.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.2693, allocations: 0 / 408.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007337/0.27, allocations: 0.5909 MB / 408.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.27, allocations: 0 / 408.9 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.581e-05/0.2701, allocations: 19.92 kB / 409 MB, free: 15.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.2701, allocations: 7.875 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.742e-05/0.2702, allocations: 8 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.2702, allocations: 0 / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2702, allocations: 4 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003186/0.2705, allocations: 284.1 kB / 409.3 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.74e-05/0.2706, allocations: 100.9 kB / 409.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.2706, allocations: 7.938 kB / 409.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.497e-05/0.2707, allocations: 8 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.214e-05/0.2708, allocations: 19.97 kB / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.702e-05/0.2708, allocations: 16 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.525e-05/0.2709, allocations: 102.9 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2709, allocations: 0 / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.2712, allocations: 55.88 kB / 409.6 MB, free: 14.99 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,step.active,transition1.enableFire,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.0006663/0.2718, allocations: 0.8347 MB / 410.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003387/0.2722, allocations: 188 kB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.2722, allocations: 4 kB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001369/0.2724, allocations: 79.86 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.0002839/0.2726, allocations: 27.97 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.002256/0.2749, allocations: 2.09 MB / 412.8 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003309/0.2753, allocations: 0.7363 MB / 413.5 MB, free: 10.83 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.628e-05/0.2754, allocations: 33.88 kB / 413.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001088/0.2755, allocations: 63.41 kB / 413.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2755, allocations: 0 / 413.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02544/0.3009, allocations: 3.741 MB / 417.4 MB, free: 7.082 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.015/8.315, allocations: 22.59 kB / 417.4 MB, free: 7.07 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_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_Variant2.fmu > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches