Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001391/0.001391, allocations: 109 kB / 17.06 MB, free: 6.016 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.001381/0.001381, allocations: 188 kB / 18 MB, free: 5.102 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.453/1.453, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3698/0.371, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00331/0.3743, allocations: 2.023 MB / 402.2 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.3754, allocations: 0.5687 MB / 402.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.3755, allocations: 4 kB / 402.8 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.3756, allocations: 19.8 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001838/0.3758, allocations: 39.72 kB / 402.9 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002811/0.3761, allocations: 67.8 kB / 402.9 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001727/0.3763, allocations: 131.5 kB / 403.1 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.3764, allocations: 45.86 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.124e-05/0.3765, allocations: 63.72 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.648e-05/0.3766, allocations: 63.69 kB / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.636e-05/0.3767, allocations: 12 kB / 403.2 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.09e-05/0.3767, allocations: 12 kB / 403.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.81e-05/0.3768, allocations: 23.92 kB / 403.3 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.323e-05/0.3768, allocations: 67.61 kB / 403.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.3771, allocations: 150.2 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3771, allocations: 3.938 kB / 403.5 MB, free: 5.531 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3771, allocations: 4 kB / 403.5 MB, free: 5.527 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.3771, allocations: 0 / 403.5 MB, free: 5.527 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006436/0.3777, allocations: 458.7 kB / 404 MB, free: 5.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.597e-05/0.3778, allocations: 12.03 kB / 404 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.726e-05/0.3778, allocations: 46.73 kB / 404 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.538e-05/0.3779, allocations: 16.84 kB / 404 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.3782, allocations: 216.1 kB / 404.2 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.437e-05/0.3782, allocations: 8.375 kB / 404.2 MB, free: 4.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.317e-05/0.3782, allocations: 16.38 kB / 404.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004949/0.3787, allocations: 267.4 kB / 404.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.3788, allocations: 4 kB / 404.5 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.3788, allocations: 4 kB / 404.5 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.3788, allocations: 4 kB / 404.5 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002428/0.379, allocations: 87.88 kB / 404.6 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006428/0.3797, allocations: 0.6038 MB / 405.2 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003345/0.38, allocations: 151.8 kB / 405.4 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.3802, allocations: 74.64 kB / 405.4 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.715e-05/0.3802, allocations: 7.984 kB / 405.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.3803, allocations: 38.5 kB / 405.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.3803, allocations: 0 / 405.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005053/0.3808, allocations: 189.5 kB / 405.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.758e-05/0.3809, allocations: 114.8 kB / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.381, allocations: 162.1 kB / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.3811, allocations: 25.7 kB / 406 MB, free: 2.773 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.575e-05/0.3811, allocations: 116.5 kB / 406.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.3812, allocations: 31.77 kB / 406.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.957e-05/0.3812, allocations: 37.67 kB / 406.2 MB, free: 2.582 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3813, allocations: 322.8 kB / 406.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.3815, allocations: 40 kB / 406.5 MB, free: 2.219 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.3816, allocations: 135.4 kB / 406.6 MB, free: 2.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.382, allocations: 197.5 kB / 406.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.382, allocations: 3.938 kB / 406.8 MB, free: 1.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000362/0.3823, allocations: 189.4 kB / 407 MB, free: 1.602 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3824, allocations: 4 kB / 407 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.3824, allocations: 4 kB / 407 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.3824, allocations: 11.98 kB / 407 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001459/0.3825, allocations: 39.92 kB / 407.1 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.3826, allocations: 7.938 kB / 407.1 MB, free: 1.535 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.3827, allocations: 27.88 kB / 407.1 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.3827, allocations: 8.312 kB / 407.1 MB, free: 1.5 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.0001161/0.3828, allocations: 137.8 kB / 407.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.383, allocations: 97.84 kB / 407.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.894e-05/0.383, allocations: 16.72 kB / 407.4 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3831, allocations: 4 kB / 407.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.3831, allocations: 0 / 407.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3831, allocations: 3.984 kB / 407.4 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002772/0.3834, allocations: 217.4 kB / 407.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.145e-06/0.3834, allocations: 4 kB / 407.6 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001718/0.3835, allocations: 39.91 kB / 407.6 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3836, allocations: 4 kB / 407.6 MB, free: 0.918 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/0.3836, allocations: 4 kB / 407.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.3836, allocations: 4 kB / 407.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3836, allocations: 0 / 407.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005209/0.3841, allocations: 390.6 kB / 408 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.341e-05/0.3842, allocations: 109 kB / 408.1 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.3842, allocations: 0 / 408.1 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.3844, allocations: 15.98 kB / 408.1 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.455e-05/0.3844, allocations: 4 kB / 408.1 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.3844, allocations: 4 kB / 408.2 MB, free: 372 kB / 318.1 MB Notification: Performance of sorting global known variables: time 8.955e-05/0.3845, allocations: 123.2 kB / 408.3 MB, free: 248 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3845, allocations: 4.062 kB / 408.3 MB, free: 244 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.3848, allocations: 24 kB / 408.3 MB, free: 220 kB / 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.0007985/0.3856, allocations: 0.9196 MB / 409.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.386, allocations: 123.8 kB / 409.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.386, allocations: 0.9375 kB / 409.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.3861, allocations: 36 kB / 409.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.3866, allocations: 70.48 kB / 409.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.3889, allocations: 2.099 MB / 411.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3892, allocations: 0.7239 MB / 412.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.944e-05/0.3892, allocations: 13.42 kB / 412.3 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.276e-05/0.3893, allocations: 43.42 kB / 412.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3893, allocations: 0 / 412.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02129/0.4106, allocations: 2.975 MB / 415.3 MB, free: 9.168 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/8.551, allocations: 16.34 kB / 415.3 MB, free: 9.152 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_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