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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 105.5 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 184.2 kB / 23.71 MB, free: 4.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.546/1.546, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001704, allocations: 39.94 kB / 370.4 MB, free: 9.879 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3525/0.3542, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003682/0.3579, allocations: 2.041 MB / 424.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.359, allocations: 0.5337 MB / 425.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.3591, allocations: 4 kB / 425.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.3592, allocations: 15.8 kB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.3593, allocations: 27.72 kB / 425.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002528/0.3596, allocations: 62.5 kB / 425.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.3598, allocations: 123.6 kB / 425.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.3599, allocations: 37.61 kB / 425.5 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.36, allocations: 55.73 kB / 425.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.693e-05/0.3601, allocations: 55.75 kB / 425.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.172e-05/0.3602, allocations: 12 kB / 425.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.026e-05/0.3602, allocations: 12 kB / 425.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.766e-05/0.3602, allocations: 27.92 kB / 425.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.568e-05/0.3603, allocations: 55.67 kB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002316/0.3605, allocations: 131.9 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3605, allocations: 0 / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3605, allocations: 0 / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.3605, allocations: 3.938 kB / 425.8 MB, free: 11.42 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006683/0.3612, allocations: 357.8 kB / 426.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3612, allocations: 12.03 kB / 426.2 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.198e-05/0.3613, allocations: 50.67 kB / 426.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.939e-05/0.3613, allocations: 16.84 kB / 426.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.3617, allocations: 146.3 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.3617, allocations: 8.375 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/0.3617, allocations: 16.38 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/0.3622, allocations: 258.6 kB / 426.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.3623, allocations: 3.938 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.567e-05/0.3623, allocations: 4 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.3623, allocations: 4 kB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002684/0.3625, allocations: 91.88 kB / 426.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006806/0.3632, allocations: 0.5311 MB / 427.3 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000378/0.3636, allocations: 139.7 kB / 427.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.3638, allocations: 74.77 kB / 427.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.3638, allocations: 0 / 427.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.477e-05/0.3639, allocations: 42.56 kB / 427.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.162e-06/0.3639, allocations: 0 / 427.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005378/0.3644, allocations: 189.3 kB / 427.7 MB, free: 9.309 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/0.3645, allocations: 110.8 kB / 427.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.3646, allocations: 130.2 kB / 428 MB, free: 9.035 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.3646, allocations: 33.83 kB / 428 MB, free: 8.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.933e-05/0.3647, allocations: 115.9 kB / 428.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.943e-05/0.3647, allocations: 27.83 kB / 428.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/0.3648, allocations: 33.72 kB / 428.2 MB, free: 8.812 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.3649, allocations: 318.8 kB / 428.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.3651, allocations: 39.91 kB / 428.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.3653, allocations: 139.6 kB / 428.6 MB, free: 8.27 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003131/0.3656, allocations: 181.7 kB / 428.8 MB, free: 8.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3656, allocations: 7.875 kB / 428.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000404/0.366, allocations: 197.2 kB / 429 MB, free: 7.836 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.366, allocations: 11.75 kB / 429 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.366, allocations: 7.984 kB / 429 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.366, allocations: 8 kB / 429 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001596/0.3662, allocations: 43.92 kB / 429.1 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.3662, allocations: 4 kB / 429.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001096/0.3663, allocations: 28.19 kB / 429.1 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.3663, allocations: 8 kB / 429.1 MB, free: 7.73 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.000122/0.3664, allocations: 133.7 kB / 429.3 MB, free: 7.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.3666, allocations: 97.47 kB / 429.4 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.044e-05/0.3667, allocations: 24.7 kB / 429.4 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3667, allocations: 4 kB / 429.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.3667, allocations: 0 / 429.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.3667, allocations: 0 / 429.4 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002882/0.367, allocations: 180.6 kB / 429.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.367, allocations: 0 / 429.6 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001878/0.3672, allocations: 39.91 kB / 429.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.3672, allocations: 0 / 429.6 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.772e-05/0.3672, allocations: 8 kB / 429.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.3672, allocations: 0 / 429.6 MB, free: 7.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3672, allocations: 4 kB / 429.6 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005736/0.3678, allocations: 379.4 kB / 430 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.731e-05/0.3678, allocations: 15.92 kB / 430 MB, free: 6.781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.3678, allocations: 4 kB / 430 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.368, allocations: 19.98 kB / 430 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.368, allocations: 0 / 430 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.667e-06/0.368, allocations: 4 kB / 430 MB, free: 6.754 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.172e-05/0.3681, allocations: 103.1 kB / 430.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3681, allocations: 0 / 430.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003394/0.3684, allocations: 27.95 kB / 430.2 MB, free: 6.629 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.0009095/0.3693, allocations: 0.9121 MB / 431.1 MB, free: 5.688 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003529/0.3697, allocations: 124 kB / 431.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3697, allocations: 0 / 431.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.639e-05/0.3698, allocations: 23.98 kB / 431.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.3703, allocations: 60.25 kB / 431.3 MB, free: 5.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.373, allocations: 2.074 MB / 433.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000412/0.3734, allocations: 0.7084 MB / 434.1 MB, free: 2.5 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.695e-05/0.3735, allocations: 13.08 kB / 434.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.626e-05/0.3735, allocations: 35.42 kB / 434.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3735, allocations: 0 / 434.1 MB, free: 2.453 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03281/0.4064, allocations: 2.988 MB / 437.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/12.09, allocations: 11.16 kB / 437.1 MB, free: 15.6 MB / 350.1 MB " [Timeout remaining time 648] (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.000593942 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "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! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 14.845254640997155]