Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.00142/0.00142, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001582/0.001582, allocations: 195 kB / 18 MB, free: 5.074 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.436/1.436, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 43.92 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3584/0.3597, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003721/0.3635, allocations: 2.014 MB / 402.2 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.3647, allocations: 0.5259 MB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.3648, allocations: 4 kB / 402.7 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.365, allocations: 15.8 kB / 402.8 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001662/0.3652, allocations: 31.72 kB / 402.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000277/0.3655, allocations: 71.73 kB / 402.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001773/0.3657, allocations: 119.6 kB / 403 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.3659, allocations: 49.44 kB / 403 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.705e-05/0.366, allocations: 55.77 kB / 403.1 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.455e-05/0.3661, allocations: 51.78 kB / 403.1 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.992e-05/0.3661, allocations: 12 kB / 403.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.046e-05/0.3661, allocations: 8 kB / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.418e-05/0.3662, allocations: 27.86 kB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.978e-05/0.3663, allocations: 59.7 kB / 403.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.3665, allocations: 134.3 kB / 403.4 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.3665, allocations: 4 kB / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3665, allocations: 0 / 403.4 MB, free: 5.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.507e-06/0.3665, allocations: 0 / 403.4 MB, free: 5.668 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006609/0.3672, allocations: 442.1 kB / 403.8 MB, free: 5.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.3673, allocations: 8.031 kB / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.789e-05/0.3673, allocations: 42.75 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.842e-05/0.3674, allocations: 16.84 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002924/0.3677, allocations: 208.2 kB / 404.1 MB, free: 4.875 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.3677, allocations: 12.38 kB / 404.1 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.71e-05/0.3677, allocations: 16.36 kB / 404.1 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.3683, allocations: 263.4 kB / 404.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.3683, allocations: 0 / 404.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.3683, allocations: 4 kB / 404.4 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.3683, allocations: 4 kB / 404.4 MB, free: 4.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002451/0.3686, allocations: 87.88 kB / 404.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006488/0.3693, allocations: 0.5882 MB / 405 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003476/0.3696, allocations: 147.9 kB / 405.2 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.3698, allocations: 74.62 kB / 405.3 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.3698, allocations: 4 kB / 405.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.3698, allocations: 38.5 kB / 405.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.3699, allocations: 0 / 405.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005128/0.3704, allocations: 185.7 kB / 405.5 MB, free: 3.316 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.3705, allocations: 122.8 kB / 405.6 MB, free: 3.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.3706, allocations: 126.2 kB / 405.7 MB, free: 3.035 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.3706, allocations: 37.69 kB / 405.8 MB, free: 2.992 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.241e-05/0.3707, allocations: 111.9 kB / 405.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.3707, allocations: 23.84 kB / 405.9 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.311e-05/0.3708, allocations: 41.83 kB / 405.9 MB, free: 2.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.3709, allocations: 318.8 kB / 406.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.371, allocations: 39.97 kB / 406.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.3712, allocations: 135.2 kB / 406.4 MB, free: 2.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000287/0.3715, allocations: 189.5 kB / 406.6 MB, free: 2.035 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.3715, allocations: 3.938 kB / 406.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003606/0.3719, allocations: 197.2 kB / 406.8 MB, free: 1.832 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.765e-05/0.3719, allocations: 8 kB / 406.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.3719, allocations: 4 kB / 406.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3719, allocations: 4 kB / 406.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001551/0.3721, allocations: 47.91 kB / 406.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.3721, allocations: 8.406 kB / 406.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001008/0.3722, allocations: 27.88 kB / 406.9 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.335e-05/0.3722, allocations: 8 kB / 406.9 MB, free: 1.727 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001017/0.3723, allocations: 133.7 kB / 407 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.3725, allocations: 89.83 kB / 407.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.914e-05/0.3726, allocations: 16.7 kB / 407.1 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3726, allocations: 11.92 kB / 407.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3726, allocations: 0 / 407.2 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3726, allocations: 4 kB / 407.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.3729, allocations: 209.5 kB / 407.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3729, allocations: 4 kB / 407.4 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.3731, allocations: 35.97 kB / 407.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.3731, allocations: 0 / 407.4 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.3731, allocations: 8 kB / 407.4 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.3731, allocations: 0 / 407.4 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3731, allocations: 0 / 407.4 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005281/0.3736, allocations: 383.3 kB / 407.8 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.222e-05/0.3737, allocations: 93.11 kB / 407.9 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.3737, allocations: 7.938 kB / 407.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001291/0.3739, allocations: 8 kB / 407.9 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.706e-05/0.3739, allocations: 7.984 kB / 407.9 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.3739, allocations: 8.062 kB / 407.9 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.097e-05/0.374, allocations: 102.6 kB / 408 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.374, allocations: 0 / 408 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.3743, allocations: 27.95 kB / 408 MB, free: 0.4961 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0009235/0.3753, allocations: 0.9154 MB / 408.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000342/0.3756, allocations: 124.6 kB / 409.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.3756, allocations: 4.125 kB / 409.1 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.3757, allocations: 27.92 kB / 409.1 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005783/0.3763, allocations: 52 kB / 409.2 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/0.3791, allocations: 2.06 MB / 411.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.3795, allocations: 0.7162 MB / 411.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.393e-05/0.3795, allocations: 13.08 kB / 411.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.259e-05/0.3796, allocations: 35.42 kB / 412 MB, free: 12.32 MB / 334.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3796, allocations: 0 / 412 MB, free: 12.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.026/0.4056, allocations: 2.794 MB / 414.8 MB, free: 9.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.141/8.546, allocations: 12.12 kB / 414.8 MB, free: 9.668 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w