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.001765/0.001765, 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.001683/0.001683, allocations: 191 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.31/1.31, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 43.92 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2835, allocations: 49.43 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.004332/0.2879, allocations: 1.666 MB / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.289, allocations: 293.6 kB / 402.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001962/0.2893, allocations: 4 kB / 402.2 MB, free: 6.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.2895, allocations: 31.67 kB / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00011/0.2896, allocations: 19.8 kB / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005905/0.2902, allocations: 115.8 kB / 402.3 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004751/0.2907, allocations: 279.4 kB / 402.6 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004219/0.2912, allocations: 183 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001463/0.2913, allocations: 99.69 kB / 402.9 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002567/0.2916, allocations: 99.53 kB / 403 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.318e-05/0.2917, allocations: 24 kB / 403 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.797e-05/0.2918, allocations: 28 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.752e-05/0.2919, allocations: 67.81 kB / 403.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002226/0.2921, allocations: 91.53 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000504/0.2926, allocations: 265.9 kB / 403.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2926, allocations: 0 / 403.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2926, allocations: 0 / 403.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.2927, 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.0009327/0.2936, allocations: 0.4983 MB / 403.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.347e-05/0.2937, allocations: 11.97 kB / 404 MB, free: 5.016 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.822e-05/0.2938, allocations: 58.67 kB / 404 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.402e-05/0.2939, allocations: 24.8 kB / 404 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004983/0.2944, allocations: 236.1 kB / 404.3 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.467e-05/0.2944, allocations: 20.94 kB / 404.3 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.867e-05/0.2945, allocations: 28.36 kB / 404.3 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005773/0.2951, allocations: 278.5 kB / 404.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.2951, allocations: 3.938 kB / 404.6 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.411e-05/0.2951, allocations: 11.98 kB / 404.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.2952, allocations: 8 kB / 404.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004239/0.2956, allocations: 165.6 kB / 404.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.2973, allocations: 0.9635 MB / 405.7 MB, free: 3.102 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004247/0.2978, allocations: 181.2 kB / 405.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.2979, allocations: 81.78 kB / 406 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.298, allocations: 0 / 406 MB, free: 2.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000269/0.2982, allocations: 144.6 kB / 406.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.864e-06/0.2983, allocations: 0 / 406.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005815/0.2989, allocations: 233.3 kB / 406.4 MB, free: 2.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.432e-05/0.2989, allocations: 81.11 kB / 406.4 MB, free: 2.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.2991, allocations: 153.7 kB / 406.6 MB, free: 2.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.475e-05/0.2992, allocations: 37.7 kB / 406.6 MB, free: 2.129 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.2993, allocations: 140.8 kB / 406.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.944e-05/0.2994, allocations: 63.48 kB / 406.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.2995, allocations: 77.69 kB / 406.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.2997, allocations: 334.9 kB / 407.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001307/0.2998, allocations: 67.97 kB / 407.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.3, allocations: 140.3 kB / 407.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002521/0.3003, allocations: 196.8 kB / 407.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.3003, allocations: 4 kB / 407.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003743/0.3006, allocations: 253.3 kB / 407.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.3007, allocations: 8 kB / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.295e-06/0.3007, allocations: 4 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.3007, allocations: 8 kB / 407.9 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001386/0.3009, allocations: 31.86 kB / 407.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.3009, allocations: 8.219 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.301, allocations: 35.77 kB / 408 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.023e-05/0.301, allocations: 16 kB / 408 MB, free: 0.6836 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.0001371/0.3012, allocations: 161.7 kB / 408.1 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.026e-05/0.3012, allocations: 15.91 kB / 408.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003119/0.3015, allocations: 194.3 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.3015, allocations: 4 kB / 408.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3015, allocations: 0 / 408.4 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.3016, allocations: 8 kB / 408.4 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007199/0.3023, allocations: 0.5909 MB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3023, allocations: 4 kB / 409 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.423e-05/0.3024, allocations: 12 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.3024, allocations: 7.875 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.77e-05/0.3024, allocations: 7.984 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.3024, allocations: 4 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3024, allocations: 0 / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000309/0.3027, allocations: 288.1 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.92e-05/0.3028, allocations: 96.95 kB / 409.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.3028, allocations: 7.938 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.784e-05/0.3029, allocations: 7.984 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.319e-05/0.303, allocations: 19.98 kB / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.303, allocations: 7.984 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.106e-05/0.3031, allocations: 102.9 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3031, allocations: 4 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000306/0.3034, allocations: 51.89 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,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.0006183/0.304, allocations: 0.8307 MB / 410.4 MB, free: 14.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003226/0.3044, allocations: 199.9 kB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3044, allocations: 0 / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.3045, 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.0002856/0.3048, allocations: 23.98 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.00218/0.307, allocations: 2.094 MB / 412.8 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003073/0.3073, allocations: 0.7402 MB / 413.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.171e-05/0.3074, allocations: 25.88 kB / 413.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.3075, allocations: 71.41 kB / 413.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3075, allocations: 0 / 413.6 MB, free: 10.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0209/0.3284, allocations: 3.742 MB / 417.4 MB, free: 7.074 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.709/8.037, allocations: 22.91 kB / 417.4 MB, free: 7.059 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