Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.932/0.932, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.668e-05/1.829e-05, allocations: 2.281 kB / 324.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002664/0.002682, allocations: 2.047 MB / 326.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007945/0.003477, allocations: 0.5103 MB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.003579, allocations: 4 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.003684, allocations: 15.8 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.47e-05/0.003748, allocations: 31.66 kB / 327.2 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002774/0.004026, allocations: 59.81 kB / 327.2 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001805/0.004206, allocations: 131.5 kB / 327.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.004356, allocations: 49.09 kB / 327.4 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.004468, allocations: 67.83 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.807e-05/0.004536, allocations: 39.88 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.022e-05/0.004566, allocations: 12 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.456e-05/0.004581, allocations: 12 kB / 327.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.675e-05/0.004608, allocations: 35.78 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.836e-05/0.004646, allocations: 35.91 kB / 327.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.004825, allocations: 135.5 kB / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.004827, allocations: 0 / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.004828, allocations: 0 / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.004834, allocations: 0 / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0005054/0.005339, allocations: 357.8 kB / 328.1 MB, free: 12.25 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.005383, allocations: 12.03 kB / 328.1 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.879e-05/0.005422, allocations: 42.75 kB / 328.1 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.22e-05/0.005454, allocations: 16.84 kB / 328.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.005665, allocations: 149.5 kB / 328.3 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.005677, allocations: 12.38 kB / 328.3 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.005704, allocations: 16.33 kB / 328.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003559/0.00606, allocations: 227.2 kB / 328.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.006072, allocations: 192 / 328.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.006087, allocations: 12.12 kB / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.006092, allocations: 0 / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001431/0.006235, allocations: 79.88 kB / 328.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005063/0.006741, allocations: 0.5234 MB / 329.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002426/0.006984, allocations: 143.9 kB / 329.3 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.498e-05/0.007069, allocations: 62.64 kB / 329.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.007094, allocations: 19.91 kB / 329.4 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.007111, allocations: 30.56 kB / 329.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.007113, allocations: 0 / 329.4 MB, free: 10.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003305/0.007443, allocations: 189.3 kB / 329.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.007506, allocations: 110.8 kB / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.279e-05/0.007589, allocations: 138 kB / 329.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.007602, allocations: 29.7 kB / 329.9 MB, free: 10.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.798e-05/0.00766, allocations: 120 kB / 330 MB, free: 10.13 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.834e-05/0.007678, allocations: 23.78 kB / 330 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.511e-05/0.007713, allocations: 25.72 kB / 330 MB, free: 10.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.916e-05/0.007802, allocations: 322.8 kB / 330.3 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.498e-05/0.007857, allocations: 28.09 kB / 330.4 MB, free: 9.727 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.73e-05/0.007934, allocations: 95.64 kB / 330.5 MB, free: 9.605 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.008073, allocations: 106.8 kB / 330.6 MB, free: 9.477 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.008075, allocations: 8 kB / 330.6 MB, free: 9.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001772/0.008252, allocations: 137.4 kB / 330.7 MB, free: 9.328 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.008266, allocations: 8 kB / 330.7 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.008271, allocations: 0 / 330.7 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.008285, allocations: 4 kB / 330.7 MB, free: 9.316 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.266e-05/0.008357, allocations: 28.14 kB / 330.7 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.008365, allocations: 15.92 kB / 330.8 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.313e-05/0.008409, allocations: 11.94 kB / 330.8 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-06/0.008417, allocations: 8 kB / 330.8 MB, free: 9.254 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.753e-05/0.008494, allocations: 121.8 kB / 330.9 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.008595, allocations: 93.58 kB / 331 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.947e-05/0.008624, allocations: 16.78 kB / 331 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.008628, allocations: 4 kB / 331 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.008636, allocations: 8.406 kB / 331 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.008639, allocations: 0 / 331 MB, free: 9.004 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.008818, allocations: 164.7 kB / 331.2 MB, free: 8.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.00882, allocations: 4 kB / 331.2 MB, free: 8.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.008945, allocations: 55.83 kB / 331.2 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.008947, allocations: 3.938 kB / 331.2 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.746e-06/0.008956, allocations: 0 / 331.2 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.008957, allocations: 4 kB / 331.2 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.00896, allocations: 3.938 kB / 331.2 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000332/0.009292, allocations: 387.4 kB / 331.6 MB, free: 8.332 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.845e-05/0.009311, allocations: 15.92 kB / 331.6 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.009325, allocations: 0 / 331.6 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.874e-05/0.009394, allocations: 11.98 kB / 331.7 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.602e-05/0.00943, allocations: 7.938 kB / 331.7 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.009435, allocations: 4 kB / 331.7 MB, free: 8.293 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.838e-05/0.009484, allocations: 110.3 kB / 331.8 MB, free: 8.188 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009484, allocations: 0 / 331.8 MB, free: 8.188 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002011/0.009685, allocations: 24 kB / 331.8 MB, free: 8.164 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.0005104/0.0102, allocations: 0.9221 MB / 332.7 MB, free: 7.211 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001833/0.01038, allocations: 92.19 kB / 332.8 MB, free: 7.121 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.01038, allocations: 4 kB / 332.8 MB, free: 7.117 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.701e-05/0.01043, allocations: 20.42 kB / 332.8 MB, free: 7.098 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003767/0.0108, allocations: 77.11 kB / 332.9 MB, free: 7.023 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001414/0.01222, allocations: 1.854 MB / 334.8 MB, free: 5.031 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.292e-05/0.01228, allocations: 98.27 kB / 334.9 MB, free: 4.918 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.426e-05/0.01232, allocations: 4.984 kB / 334.9 MB, free: 4.91 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.329e-05/0.01237, allocations: 44.42 kB / 334.9 MB, free: 4.867 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01237, allocations: 0 / 334.9 MB, free: 4.867 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0205/0.03287, allocations: 3.633 MB / 338.5 MB, free: 1.449 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.822/6.855, allocations: 0 / 338.5 MB, free: 1.449 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_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.756367122754455]