Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.00128/0.00128, 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.001138/0.001138, allocations: 149.1 kB / 23.93 MB, free: 0.6328 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.9283/0.9283, allocations: 173.3 MB / 200.4 MB, free: 9.453 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.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 318.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.33e-05/2.512e-05, allocations: 6.219 kB / 318.4 MB, free: 6.391 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002662/0.002688, allocations: 2.059 MB / 320.5 MB, free: 4.312 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008678/0.003555, allocations: 0.6198 MB / 321.1 MB, free: 3.688 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.003659, allocations: 11.88 kB / 321.1 MB, free: 3.676 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002615/0.00392, allocations: 43.7 kB / 321.1 MB, free: 3.633 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.004037, allocations: 59.5 kB / 321.2 MB, free: 3.574 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002898/0.004327, allocations: 123.8 kB / 321.3 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002638/0.004591, allocations: 351.1 kB / 321.7 MB, free: 3.109 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.004728, allocations: 52.48 kB / 321.7 MB, free: 3.055 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.004916, allocations: 199.5 kB / 321.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001519/0.005068, allocations: 131.7 kB / 322 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.871e-05/0.005117, allocations: 32 kB / 322.1 MB, free: 2.699 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.752e-05/0.005144, allocations: 31.94 kB / 322.1 MB, free: 2.668 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.463e-05/0.005219, allocations: 83.78 kB / 322.2 MB, free: 2.586 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.429e-05/0.005283, allocations: 87.78 kB / 322.3 MB, free: 2.5 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000245/0.005528, allocations: 315.1 kB / 322.6 MB, free: 2.191 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.00553, allocations: 4 kB / 322.6 MB, free: 2.188 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.005531, allocations: 0 / 322.6 MB, free: 2.188 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.278e-06/0.005535, allocations: 0 / 322.6 MB, free: 2.188 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0007047/0.00624, allocations: 0.5044 MB / 323.1 MB, free: 1.656 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.006276, allocations: 12.86 kB / 323.1 MB, free: 1.645 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.901e-05/0.006325, allocations: 66.72 kB / 323.2 MB, free: 1.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.531e-05/0.00637, allocations: 36.73 kB / 323.2 MB, free: 1.535 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002357/0.006606, allocations: 193.1 kB / 323.4 MB, free: 1.324 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001848/0.006791, allocations: 343.8 kB / 323.7 MB, free: 0.9219 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.915e-05/0.00683, allocations: 24.38 kB / 323.7 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005177/0.007348, allocations: 378.7 kB / 324.1 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.007362, allocations: 3.938 kB / 324.1 MB, free: 0.5117 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.084e-05/0.007382, allocations: 8 kB / 324.1 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.007391, allocations: 8 kB / 324.1 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007631/0.008154, allocations: 0.4899 MB / 324.6 MB, free: 4 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.009251, allocations: 0.8991 MB / 325.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000594/0.009845, allocations: 302.4 kB / 325.8 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.01014, allocations: 172.7 kB / 326 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.01017, allocations: 4 kB / 326 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.795e-05/0.01018, allocations: 30.56 kB / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.583e-06/0.01018, allocations: 3.938 kB / 326 MB, free: 14.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.014/0.02418, allocations: 5.675 MB / 331.7 MB, free: 8.797 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.02422, allocations: 59.84 kB / 331.8 MB, free: 8.727 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001751/0.0244, allocations: 210.3 kB / 332 MB, free: 8.512 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4e-05/0.02444, allocations: 41.7 kB / 332 MB, free: 8.465 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.942e-05/0.02452, allocations: 153 kB / 332.1 MB, free: 8.312 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.02463, allocations: 186.3 kB / 332.3 MB, free: 8.129 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001392/0.02477, allocations: 86.34 kB / 332.4 MB, free: 8.039 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.02487, allocations: 338.8 kB / 332.7 MB, free: 7.699 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007346/0.0256, allocations: 480.9 kB / 333.2 MB, free: 7.227 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007729/0.02638, allocations: 0.5186 MB / 333.7 MB, free: 6.695 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001682/0.02806, allocations: 0.8142 MB / 334.5 MB, free: 5.863 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.02806, allocations: 0 / 334.5 MB, free: 5.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00154/0.0296, allocations: 0.9969 MB / 335.5 MB, free: 4.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.02962, allocations: 6.781 kB / 335.6 MB, free: 4.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.02963, allocations: 8 kB / 335.6 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.02965, allocations: 7.984 kB / 335.6 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004706/0.03012, allocations: 163.7 kB / 335.7 MB, free: 4.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.03013, allocations: 7.938 kB / 335.7 MB, free: 4.672 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.03044, allocations: 91.88 kB / 335.8 MB, free: 4.582 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.274e-05/0.03047, allocations: 20 kB / 335.8 MB, free: 4.562 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001538/0.03062, allocations: 150.4 kB / 336 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.92e-05/0.03067, allocations: 27.86 kB / 336 MB, free: 4.379 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.844e-05/0.03073, allocations: 51.3 kB / 336.1 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.03073, allocations: 4 kB / 336.1 MB, free: 4.324 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.03074, allocations: 7.875 kB / 336.1 MB, free: 4.316 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.03075, allocations: 3.984 kB / 336.1 MB, free: 4.312 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002324/0.03307, allocations: 1.748 MB / 337.8 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.03307, allocations: 8 kB / 337.8 MB, free: 2.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/0.03338, allocations: 144.3 kB / 338 MB, free: 2.258 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.03339, allocations: 16 kB / 338 MB, free: 2.242 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.03342, allocations: 24 kB / 338 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.007e-05/0.03343, allocations: 19.92 kB / 338 MB, free: 2.199 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.543e-06/0.03343, allocations: 15.88 kB / 338.1 MB, free: 2.184 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/0.03504, allocations: 1.224 MB / 339.3 MB, free: 0.8203 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.03515, allocations: 75.8 kB / 339.4 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/0.03519, allocations: 16 kB / 339.4 MB, free: 0.7305 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002636/0.03546, allocations: 83.84 kB / 339.4 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.03558, allocations: 87.7 kB / 339.5 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.03561, allocations: 24 kB / 339.6 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001033/0.03571, allocations: 148.3 kB / 339.7 MB, free: 404 kB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03571, allocations: 0 / 339.7 MB, free: 404 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003175/0.03603, allocations: 100 kB / 339.8 MB, free: 304 kB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.002151/0.03818, allocations: 1.788 MB / 341.6 MB, free: 14.38 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001326/0.03951, allocations: 0.8023 MB / 342.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.03951, allocations: 4.25 kB / 342.4 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005321/0.04004, allocations: 329.5 kB / 342.7 MB, free: 13.25 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.04045, allocations: 54.47 kB / 342.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006146/0.04659, allocations: 5.231 MB / 348 MB, free: 7.648 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004106/0.047, allocations: 176.2 kB / 348.2 MB, free: 7.461 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002566/0.04726, allocations: 86.88 kB / 348.3 MB, free: 7.375 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/0.04746, allocations: 92.47 kB / 348.3 MB, free: 7.285 MB / 314.7 MB Notification: Performance of SimCode: time 1.203e-06/0.04746, allocations: 0 / 348.3 MB, free: 7.285 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02274/0.0702, allocations: 9.52 MB / 357.9 MB, free: 13.96 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.1/7.17, allocations: 0 / 357.9 MB, free: 13.96 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798722 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable load.phi in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.061691130511463]