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.001103/0.001103, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001176/0.001176, allocations: 200 kB / 18.01 MB, free: 5.047 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.313/1.313, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2925, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003037/0.2956, allocations: 1.698 MB / 401.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000684/0.2963, allocations: 292.8 kB / 402.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.979e-05/0.2964, allocations: 7.938 kB / 402.2 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.2966, allocations: 27.67 kB / 402.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.555e-05/0.2967, allocations: 19.8 kB / 402.2 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003693/0.297, allocations: 115.8 kB / 402.4 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002898/0.2973, allocations: 271.5 kB / 402.6 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000365/0.2977, allocations: 177.5 kB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.219e-05/0.2978, allocations: 95.7 kB / 402.9 MB, free: 6.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.2979, allocations: 99.53 kB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.663e-05/0.298, allocations: 24 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.042e-05/0.2981, allocations: 35.98 kB / 403.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.411e-05/0.2981, allocations: 59.83 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.709e-05/0.2982, allocations: 91.53 kB / 403.2 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.2985, allocations: 257.9 kB / 403.5 MB, free: 5.578 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2985, allocations: 4 kB / 403.5 MB, free: 5.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2985, allocations: 3.938 kB / 403.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.2986, allocations: 3.938 kB / 403.5 MB, free: 5.566 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.0006239/0.2992, allocations: 0.4906 MB / 404 MB, free: 5.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.2992, allocations: 16.03 kB / 404 MB, free: 5.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.188e-05/0.2993, allocations: 58.73 kB / 404 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.498e-05/0.2994, allocations: 24.8 kB / 404 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002751/0.2996, allocations: 224.1 kB / 404.3 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.2997, allocations: 24.92 kB / 404.3 MB, free: 4.633 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.853e-05/0.2997, allocations: 32.38 kB / 404.3 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004427/0.3002, allocations: 270.5 kB / 404.6 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.3002, allocations: 3.938 kB / 404.6 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.3002, allocations: 12 kB / 404.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.3002, allocations: 7.984 kB / 404.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002887/0.3005, allocations: 165.6 kB / 404.8 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.3016, allocations: 0.9713 MB / 405.7 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002784/0.3019, allocations: 177.3 kB / 405.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001197/0.302, allocations: 85.78 kB / 406 MB, free: 2.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.3021, allocations: 3.938 kB / 406 MB, free: 2.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002379/0.3023, allocations: 140.7 kB / 406.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.853e-06/0.3023, allocations: 0 / 406.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004325/0.3027, allocations: 221.4 kB / 406.4 MB, free: 2.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.3028, allocations: 85.23 kB / 406.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.303, allocations: 153.7 kB / 406.6 MB, free: 2.176 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.303, allocations: 37.7 kB / 406.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.3031, allocations: 140.8 kB / 406.8 MB, free: 1.992 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.659e-05/0.3032, allocations: 67.47 kB / 406.8 MB, free: 1.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.854e-05/0.3033, allocations: 77.69 kB / 406.9 MB, free: 1.844 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.3034, allocations: 338.7 kB / 407.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.3035, allocations: 59.97 kB / 407.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.3037, allocations: 148.3 kB / 407.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.304, allocations: 192.8 kB / 407.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.304, allocations: 4 kB / 407.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003606/0.3043, allocations: 253.3 kB / 407.9 MB, free: 0.793 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.3044, allocations: 4 kB / 407.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3044, allocations: 4 kB / 407.9 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.3044, allocations: 4 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001482/0.3045, allocations: 39.86 kB / 407.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.3046, allocations: 4 kB / 407.9 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.3047, allocations: 31.77 kB / 408 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-05/0.3047, allocations: 20.27 kB / 408 MB, free: 0.6875 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.0001767/0.3049, allocations: 161.7 kB / 408.1 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.786e-05/0.3049, allocations: 15.89 kB / 408.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003222/0.3053, allocations: 194.3 kB / 408.4 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.3053, allocations: 0 / 408.4 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.3053, allocations: 4 kB / 408.4 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.3053, allocations: 0 / 408.4 MB, free: 312 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007159/0.306, allocations: 0.5948 MB / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.306, allocations: 0 / 408.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.456e-05/0.3061, allocations: 23.98 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3061, allocations: 3.938 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.3061, allocations: 8 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.3062, allocations: 0 / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.3062, allocations: 3.938 kB / 409 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.3065, allocations: 288 kB / 409.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.3065, allocations: 96.97 kB / 409.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.3066, allocations: 11.94 kB / 409.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.247e-05/0.3067, allocations: 8 kB / 409.4 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.3067, allocations: 19.97 kB / 409.4 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.3067, allocations: 8 kB / 409.4 MB, free: 15.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.745e-05/0.3068, allocations: 91.27 kB / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3068, allocations: 0 / 409.5 MB, free: 15.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003158/0.3071, allocations: 59.83 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.0006319/0.3078, allocations: 0.8346 MB / 410.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003117/0.3081, allocations: 196.4 kB / 410.6 MB, free: 13.94 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3081, allocations: 4.125 kB / 410.6 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.3083, allocations: 83.91 kB / 410.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002847/0.3085, allocations: 18.66 kB / 410.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00211/0.3107, allocations: 2.082 MB / 412.8 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.311, allocations: 0.7403 MB / 413.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.126e-05/0.3111, allocations: 25.94 kB / 413.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.3112, allocations: 59.36 kB / 413.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3112, allocations: 0 / 413.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.3332, allocations: 3.717 MB / 417.3 MB, free: 7.121 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.699/8.032, allocations: 4.562 kB / 417.3 MB, free: 7.117 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