Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001326/0.001327, allocations: 122.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001818/0.001818, allocations: 63.89 kB / 358.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3466, allocations: 50.54 MB / 408.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003784/0.3504, allocations: 2.045 MB / 410.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.3516, allocations: 0.5999 MB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.3517, allocations: 4 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.3519, allocations: 15.8 kB / 411.4 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001857/0.3521, allocations: 31.72 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.3524, allocations: 79.36 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.3526, allocations: 123.6 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001949/0.3528, allocations: 65.83 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.641e-05/0.3529, allocations: 55.72 kB / 411.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.835e-05/0.353, allocations: 55.7 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.766e-05/0.3531, allocations: 12 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.556e-05/0.3531, allocations: 12 kB / 411.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.088e-05/0.3532, allocations: 35.84 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.33e-05/0.3533, allocations: 63.61 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.3535, allocations: 154.2 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.3535, allocations: 0 / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3535, allocations: 0 / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.3536, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.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.0007863/0.3543, allocations: 454.7 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.3544, allocations: 8.031 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.169e-05/0.3545, allocations: 50.73 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.458e-05/0.3545, allocations: 20.8 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.3548, allocations: 216.1 kB / 412.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.292e-05/0.3549, allocations: 12.38 kB / 412.8 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.3549, allocations: 12.38 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006042/0.3555, allocations: 263.1 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.3556, allocations: 0 / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.3556, allocations: 8 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.3556, allocations: 3.938 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002653/0.3559, allocations: 83.94 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007703/0.3566, allocations: 0.6037 MB / 413.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003846/0.357, allocations: 151.8 kB / 413.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001879/0.3572, allocations: 86.61 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.3573, allocations: 4 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.3573, allocations: 34.5 kB / 414.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.3573, allocations: 0 / 414.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005505/0.3579, allocations: 189.5 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.68e-05/0.358, allocations: 114.8 kB / 414.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001768/0.3582, allocations: 162.2 kB / 414.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.3582, allocations: 33.7 kB / 414.5 MB, free: 11.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.96e-05/0.3583, allocations: 112.5 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.919e-05/0.3583, allocations: 27.78 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.492e-05/0.3584, allocations: 33.72 kB / 414.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3586, allocations: 330.9 kB / 415 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.3587, allocations: 35.97 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001954/0.3589, allocations: 142.8 kB / 415.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.3592, allocations: 185.5 kB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.049e-06/0.3592, allocations: 3.938 kB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000391/0.3596, allocations: 193.3 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3597, allocations: 8 kB / 415.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.3597, allocations: 7.984 kB / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.3597, allocations: 4 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.3598, allocations: 43.92 kB / 415.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.3599, allocations: 12.31 kB / 415.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.36, allocations: 20.28 kB / 415.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.323e-05/0.36, allocations: 16 kB / 415.7 MB, free: 10.16 MB / 334.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.0001277/0.3602, allocations: 133.7 kB / 415.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.3603, allocations: 93.53 kB / 415.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.869e-05/0.3604, allocations: 20.66 kB / 415.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3604, allocations: 4 kB / 415.9 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.3605, allocations: 0 / 415.9 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.3605, allocations: 3.984 kB / 415.9 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003126/0.3608, allocations: 221.5 kB / 416.2 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3608, allocations: 4 kB / 416.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.361, allocations: 39.97 kB / 416.2 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.361, allocations: 0 / 416.2 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.361, allocations: 3.938 kB / 416.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.361, allocations: 8 kB / 416.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.361, allocations: 0 / 416.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000603/0.3616, allocations: 394.5 kB / 416.6 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.39e-05/0.3617, allocations: 101 kB / 416.7 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.3618, allocations: 8 kB / 416.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.3619, allocations: 7.984 kB / 416.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.011e-05/0.362, allocations: 0 / 416.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.261e-05/0.362, allocations: 8 kB / 416.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001166/0.3621, allocations: 123.3 kB / 416.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3621, allocations: 0 / 416.8 MB, free: 8.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003213/0.3625, allocations: 28 kB / 416.9 MB, free: 8.883 MB / 334.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.0009091/0.3634, allocations: 0.9196 MB / 417.8 MB, free: 7.934 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003821/0.3638, allocations: 119.8 kB / 417.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3638, allocations: 0.9375 kB / 417.9 MB, free: 7.816 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.3639, allocations: 39.98 kB / 417.9 MB, free: 7.777 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005018/0.3644, allocations: 66.88 kB / 418 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002788/0.3672, allocations: 2.11 MB / 420.1 MB, free: 5.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004166/0.3676, allocations: 0.7201 MB / 420.8 MB, free: 4.684 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.183e-05/0.3677, allocations: 13.42 kB / 420.9 MB, free: 4.672 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.901e-05/0.3678, allocations: 39.42 kB / 420.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of SimCode: time 2.605e-06/0.3678, allocations: 0 / 420.9 MB, free: 4.633 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02694/0.3947, allocations: 2.977 MB / 423.9 MB, free: 1.84 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.383/8.777, allocations: 11.11 kB / 423.9 MB, free: 1.836 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_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