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.001077/0.001077, allocations: 108.3 kB / 17.06 MB, free: 5.824 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.000985/0.0009851, allocations: 191 kB / 18 MB, free: 4.977 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000935/0.000935, allocations: 51.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2462, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003226/0.2495, allocations: 2.017 MB / 402.2 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001017/0.2505, allocations: 0.5765 MB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.2507, allocations: 4 kB / 402.8 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.2508, allocations: 23.67 kB / 402.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.251, allocations: 31.72 kB / 402.9 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.2513, allocations: 67.81 kB / 402.9 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.2515, allocations: 135.5 kB / 403.1 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.2517, allocations: 49.86 kB / 403.1 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.831e-05/0.2518, allocations: 51.8 kB / 403.2 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.413e-05/0.2519, allocations: 63.69 kB / 403.2 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.2519, allocations: 8 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.345e-05/0.2519, allocations: 12 kB / 403.2 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.673e-05/0.252, allocations: 31.91 kB / 403.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.901e-05/0.2521, allocations: 67.61 kB / 403.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001983/0.2523, allocations: 157 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2523, allocations: 0 / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2523, allocations: 0 / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.2523, allocations: 0 / 403.5 MB, free: 5.535 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.0007405/0.2531, allocations: 450.9 kB / 403.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.2531, allocations: 8.031 kB / 403.9 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.705e-05/0.2532, allocations: 46.73 kB / 404 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.159e-05/0.2532, allocations: 16.75 kB / 404 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.2535, allocations: 220 kB / 404.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.333e-05/0.2535, allocations: 8.375 kB / 404.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.841e-05/0.2536, allocations: 20.38 kB / 404.2 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.2541, allocations: 255.4 kB / 404.5 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.2541, allocations: 11.84 kB / 404.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.2541, allocations: 8 kB / 404.5 MB, free: 4.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.2541, allocations: 4 kB / 404.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002586/0.2544, allocations: 87.86 kB / 404.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006317/0.255, allocations: 0.5921 MB / 405.2 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003499/0.2554, allocations: 143.9 kB / 405.3 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001617/0.2556, allocations: 82.62 kB / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.371e-05/0.2556, allocations: 4 kB / 405.4 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.2556, allocations: 42.5 kB / 405.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.756e-06/0.2557, allocations: 0 / 405.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005289/0.2562, allocations: 193.5 kB / 405.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.995e-05/0.2563, allocations: 118.8 kB / 405.8 MB, free: 2.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001441/0.2564, allocations: 162.2 kB / 405.9 MB, free: 2.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.2565, allocations: 25.7 kB / 406 MB, free: 2.789 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.589e-05/0.2565, allocations: 112.4 kB / 406.1 MB, free: 2.676 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.2566, allocations: 31.64 kB / 406.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-05/0.2566, allocations: 41.61 kB / 406.1 MB, free: 2.598 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2568, allocations: 322.8 kB / 406.5 MB, free: 2.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001212/0.2569, allocations: 35.98 kB / 406.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.2571, allocations: 139.3 kB / 406.6 MB, free: 2.055 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003163/0.2574, allocations: 189.5 kB / 406.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.2574, allocations: 3.938 kB / 406.8 MB, free: 1.816 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003863/0.2578, allocations: 197.4 kB / 407 MB, free: 1.617 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.2579, allocations: 11.94 kB / 407 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.126e-06/0.2579, allocations: 4 kB / 407 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.2579, allocations: 4 kB / 407 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.2581, allocations: 43.97 kB / 407.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.279e-05/0.2581, allocations: 7.938 kB / 407.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.2582, allocations: 19.84 kB / 407.1 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.268e-05/0.2582, allocations: 8.281 kB / 407.1 MB, free: 1.52 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.0001214/0.2583, allocations: 145.7 kB / 407.2 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.2585, allocations: 89.44 kB / 407.3 MB, free: 1.273 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.247e-05/0.2586, allocations: 20.7 kB / 407.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.2586, allocations: 4 kB / 407.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2586, allocations: 0 / 407.4 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2586, allocations: 4 kB / 407.4 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002821/0.2589, allocations: 213.5 kB / 407.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2589, allocations: 0 / 407.6 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.2591, allocations: 39.97 kB / 407.6 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.2591, allocations: 0 / 407.6 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.2591, allocations: 4 kB / 407.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2591, allocations: 0 / 407.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.2591, allocations: 0 / 407.6 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.2597, allocations: 395.2 kB / 408 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.224e-05/0.2598, allocations: 104.9 kB / 408.1 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.848e-05/0.2598, allocations: 15.97 kB / 408.1 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001405/0.26, allocations: 7.938 kB / 408.1 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.054e-05/0.26, allocations: 7.984 kB / 408.1 MB, free: 396 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.26, allocations: 4 kB / 408.1 MB, free: 392 kB / 318.1 MB Notification: Performance of sorting global known variables: time 9.306e-05/0.2601, allocations: 119.2 kB / 408.3 MB, free: 272 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2601, allocations: 64 / 408.3 MB, free: 272 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.000331/0.2605, allocations: 28 kB / 408.3 MB, free: 244 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.0008468/0.2613, allocations: 0.9231 MB / 409.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003346/0.2617, allocations: 123.7 kB / 409.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2617, allocations: 0.9375 kB / 409.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.2618, allocations: 31.91 kB / 409.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005445/0.2623, allocations: 75.09 kB / 409.4 MB, free: 15.06 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00228/0.2646, allocations: 2.096 MB / 411.5 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.265, allocations: 0.7278 MB / 412.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.744e-05/0.265, allocations: 13.42 kB / 412.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.762e-05/0.2651, allocations: 31.44 kB / 412.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2651, allocations: 0 / 412.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01991/0.285, allocations: 2.988 MB / 415.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/7.983, allocations: 4.297 kB / 415.3 MB, free: 9.184 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