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.0008906/0.0008906, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009485/0.0009485, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9325/0.9325, allocations: 173.3 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.463e-06/1.463e-06, allocations: 0 / 318.4 MB, free: 6.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.569e-05/2.715e-05, allocations: 5.516 kB / 318.4 MB, free: 6.254 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.00245/0.002477, allocations: 1.965 MB / 320.4 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007566/0.003233, allocations: 0.5024 MB / 320.9 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.003342, allocations: 4 kB / 320.9 MB, free: 3.762 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.003454, allocations: 23.73 kB / 320.9 MB, free: 3.738 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.003588, allocations: 35.66 kB / 320.9 MB, free: 3.703 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002085/0.003797, allocations: 59.73 kB / 321 MB, free: 3.645 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001609/0.003958, allocations: 119.5 kB / 321.1 MB, free: 3.527 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.004097, allocations: 49.58 kB / 321.2 MB, free: 3.473 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.642e-05/0.004193, allocations: 75.8 kB / 321.2 MB, free: 3.398 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.85e-05/0.004262, allocations: 35.89 kB / 321.3 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.723e-05/0.004289, allocations: 12 kB / 321.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.541e-05/0.004304, allocations: 12 kB / 321.3 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.212e-05/0.004336, allocations: 31.91 kB / 321.3 MB, free: 3.309 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.795e-05/0.004384, allocations: 35.91 kB / 321.4 MB, free: 3.273 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.004553, allocations: 131.5 kB / 321.5 MB, free: 3.145 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.004556, allocations: 0 / 321.5 MB, free: 3.145 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.004557, allocations: 0 / 321.5 MB, free: 3.145 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.004562, allocations: 0 / 321.5 MB, free: 3.145 MB / 282.7 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.0004982/0.005061, allocations: 349.8 kB / 321.8 MB, free: 2.773 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.005103, allocations: 8.922 kB / 321.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.942e-05/0.005142, allocations: 54.73 kB / 321.9 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.322e-05/0.005175, allocations: 16.84 kB / 321.9 MB, free: 2.688 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002228/0.005398, allocations: 153.5 kB / 322.1 MB, free: 2.512 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.00541, allocations: 8.375 kB / 322.1 MB, free: 2.504 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.005438, allocations: 16.31 kB / 322.1 MB, free: 2.488 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003811/0.005819, allocations: 246.9 kB / 322.3 MB, free: 2.227 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.005833, allocations: 4.188 kB / 322.3 MB, free: 2.223 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.597e-05/0.005849, allocations: 8.125 kB / 322.3 MB, free: 2.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.005856, allocations: 4 kB / 322.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001646/0.006021, allocations: 87.88 kB / 322.4 MB, free: 2.125 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004801/0.006501, allocations: 0.5117 MB / 322.9 MB, free: 1.551 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.006754, allocations: 139.9 kB / 323.1 MB, free: 1.387 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.314e-05/0.006847, allocations: 74.62 kB / 323.1 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-05/0.006879, allocations: 4 kB / 323.2 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.968e-05/0.006898, allocations: 30.56 kB / 323.2 MB, free: 1.262 MB / 282.7 MB Notification: Performance of pre-optimization done (n=15): time 2.385e-06/0.006901, allocations: 0 / 323.2 MB, free: 1.262 MB / 282.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003547/0.007255, allocations: 189.4 kB / 323.4 MB, free: 1.07 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.851e-05/0.007324, allocations: 122.7 kB / 323.5 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.806e-05/0.007412, allocations: 130.2 kB / 323.6 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.007425, allocations: 25.83 kB / 323.6 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.179e-05/0.007486, allocations: 123.9 kB / 323.8 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/0.007508, allocations: 23.84 kB / 323.8 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.729e-05/0.007545, allocations: 25.72 kB / 323.8 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.549e-05/0.007641, allocations: 322.8 kB / 324.1 MB, free: 256 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.938e-05/0.0077, allocations: 27.97 kB / 324.2 MB, free: 228 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.202e-05/0.007772, allocations: 74.84 kB / 324.2 MB, free: 128 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.00793, allocations: 118.8 kB / 324.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.007932, allocations: 0 / 324.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001782/0.008111, allocations: 133.5 kB / 324.5 MB, free: 15.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/0.008126, allocations: 11.94 kB / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.008132, allocations: 3.828 kB / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.008147, allocations: 4 kB / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.703e-05/0.008224, allocations: 23.98 kB / 324.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.008235, allocations: 7.938 kB / 324.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.754e-05/0.008282, allocations: 19.88 kB / 324.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.126e-06/0.00829, allocations: 8 kB / 324.5 MB, free: 15.77 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 7.962e-05/0.00837, allocations: 126 kB / 324.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.8e-05/0.008468, allocations: 89.58 kB / 324.8 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.954e-05/0.008538, allocations: 16.77 kB / 324.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.008541, allocations: 4 kB / 324.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.008548, allocations: 3.938 kB / 324.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.008553, allocations: 4 kB / 324.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001905/0.008743, allocations: 168.6 kB / 325 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.644e-06/0.008745, allocations: 0 / 325 MB, free: 15.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.008857, allocations: 35.97 kB / 325 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.00886, allocations: 0 / 325 MB, free: 15.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.008873, allocations: 12.47 kB / 325 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.008876, allocations: 0 / 325 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.008878, allocations: 3.938 kB / 325 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003532/0.009231, allocations: 378.8 kB / 325.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.989e-05/0.009251, allocations: 23.86 kB / 325.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.63e-05/0.009267, allocations: 0 / 325.4 MB, free: 14.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.096e-05/0.009338, allocations: 8 kB / 325.4 MB, free: 14.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.009383, allocations: 11.92 kB / 325.4 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.961e-06/0.009388, allocations: 8.062 kB / 325.4 MB, free: 14.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.784e-05/0.009436, allocations: 99.27 kB / 325.5 MB, free: 14.72 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009436, allocations: 0 / 325.5 MB, free: 14.72 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002001/0.009636, allocations: 24 kB / 325.5 MB, free: 14.7 MB / 298.7 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.000542/0.01018, allocations: 0.9115 MB / 326.5 MB, free: 13.76 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001945/0.01037, allocations: 95.86 kB / 326.5 MB, free: 13.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01037, allocations: 0 / 326.5 MB, free: 13.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.499e-05/0.01043, allocations: 31.91 kB / 326.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003804/0.01081, allocations: 56.11 kB / 326.6 MB, free: 13.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001468/0.01228, allocations: 1.816 MB / 328.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.656e-05/0.01236, allocations: 97.3 kB / 328.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.884e-05/0.0124, allocations: 8.984 kB / 328.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.348e-05/0.01247, allocations: 36.48 kB / 328.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of SimCode: time 1.293e-06/0.01247, allocations: 0 / 328.6 MB, free: 11.47 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01905/0.03152, allocations: 3.419 MB / 332 MB, free: 8.207 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.77/6.801, allocations: 7.922 kB / 332 MB, free: 8.199 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/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: 8.682265094481409]