Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000822/0.000822, allocations: 88.33 kB / 20.67 MB, free: 3.875 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007936/0.0007936, allocations: 160.9 kB / 23.95 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8627/0.8627, allocations: 177 MB / 204.1 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.696e-05/1.88e-05, allocations: 6.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.0026/0.002619, allocations: 2.289 MB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.003631, allocations: 0.7987 MB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.003752, allocations: 7.938 kB / 327.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002432/0.003995, allocations: 55.56 kB / 327.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.004162, allocations: 63.42 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003497/0.004512, allocations: 179.5 kB / 327.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002782/0.00479, allocations: 391.4 kB / 328.3 MB, free: 12.12 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.00493, allocations: 68.34 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002783/0.005209, allocations: 231.5 kB / 328.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000147/0.005356, allocations: 143.6 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.005391, allocations: 32 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.2e-05/0.005423, allocations: 43.94 kB / 328.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.745e-05/0.0055, allocations: 103.7 kB / 328.9 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.258e-05/0.005573, allocations: 103.7 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.00583, allocations: 366.8 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.005832, allocations: 0 / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.91e-07/0.005833, allocations: 0 / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.578e-06/0.005838, allocations: 0 / 329.3 MB, free: 11.05 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0007881/0.006626, allocations: 0.5521 MB / 329.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.00666, allocations: 11.98 kB / 329.9 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.213e-05/0.006712, allocations: 74.72 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.893e-05/0.006761, allocations: 40.7 kB / 330 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.007032, allocations: 217.8 kB / 330.2 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/0.007203, allocations: 347.9 kB / 330.6 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.036e-05/0.007243, allocations: 36.3 kB / 330.6 MB, free: 9.652 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008337/0.008077, allocations: 0.578 MB / 331.2 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.008089, allocations: 192 / 331.2 MB, free: 9.047 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.008116, allocations: 19.92 kB / 331.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.008122, allocations: 4 kB / 331.2 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007554/0.008878, allocations: 0.5113 MB / 331.7 MB, free: 8.512 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008615/0.009739, allocations: 0.879 MB / 332.6 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008025/0.01054, allocations: 470.5 kB / 333 MB, free: 7.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/0.01089, allocations: 247.4 kB / 333.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.01092, allocations: 11.94 kB / 333.3 MB, free: 6.805 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.01094, allocations: 46.44 kB / 333.3 MB, free: 6.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.503e-06/0.01094, allocations: 0 / 333.3 MB, free: 6.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.02983/0.04078, allocations: 5.748 MB / 339.1 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.957e-05/0.04087, allocations: 149 kB / 339.2 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000177/0.04104, allocations: 208.6 kB / 339.4 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.49e-05/0.0411, allocations: 41.7 kB / 339.5 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.531e-05/0.04116, allocations: 141.8 kB / 339.6 MB, free: 420 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.04129, allocations: 198.3 kB / 339.8 MB, free: 220 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001716/0.04146, allocations: 94.33 kB / 339.9 MB, free: 120 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.38e-05/0.04155, allocations: 342.8 kB / 340.2 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009361/0.04249, allocations: 0.6064 MB / 340.8 MB, free: 15.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009586/0.04345, allocations: 0.6898 MB / 341.5 MB, free: 14.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.04511, allocations: 1.118 MB / 342.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.04511, allocations: 3.938 kB / 342.7 MB, free: 13.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001985/0.04709, allocations: 1.298 MB / 344 MB, free: 11.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.04712, allocations: 8 kB / 344 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.04712, allocations: 0 / 344 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.04715, allocations: 4.234 kB / 344 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006027/0.04775, allocations: 175.8 kB / 344.1 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.04776, allocations: 15.95 kB / 344.2 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004109/0.04817, allocations: 83.89 kB / 344.2 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.04822, allocations: 23.92 kB / 344.3 MB, free: 11.69 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0002273/0.04844, allocations: 173.7 kB / 344.4 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002053/0.04865, allocations: 157.7 kB / 344.6 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.04875, allocations: 63.3 kB / 344.6 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.04876, allocations: 12 kB / 344.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/0.04876, allocations: 0 / 344.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.04877, allocations: 7.984 kB / 344.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/0.05157, allocations: 1.96 MB / 346.6 MB, free: 9.125 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/0.05158, allocations: 15.98 kB / 346.6 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003759/0.05195, allocations: 180.2 kB / 346.8 MB, free: 8.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.081e-05/0.05196, allocations: 15.94 kB / 346.8 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.05199, allocations: 32 kB / 346.9 MB, free: 8.887 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.278e-05/0.05201, allocations: 27.86 kB / 346.9 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.05201, allocations: 11.94 kB / 346.9 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00182/0.05383, allocations: 1.546 MB / 348.4 MB, free: 7.148 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.05397, allocations: 91.64 kB / 348.5 MB, free: 7.059 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.05401, allocations: 27.98 kB / 348.6 MB, free: 7.031 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002998/0.05431, allocations: 87.91 kB / 348.6 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.05445, allocations: 95.64 kB / 348.7 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.05448, allocations: 35.94 kB / 348.8 MB, free: 6.816 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.672e-05/0.05456, allocations: 144.1 kB / 348.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.05456, allocations: 0 / 348.9 MB, free: 6.676 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003938/0.05496, allocations: 120 kB / 349 MB, free: 6.559 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.002011/0.05697, allocations: 2.126 MB / 351.2 MB, free: 4.277 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001575/0.05854, allocations: 0.9988 MB / 352.2 MB, free: 3.273 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.05855, allocations: 0 / 352.2 MB, free: 3.273 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005717/0.05912, allocations: 341.8 kB / 352.5 MB, free: 2.941 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005932/0.05971, allocations: 128.5 kB / 352.6 MB, free: 2.816 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007553/0.06727, allocations: 6.406 MB / 359 MB, free: 12.01 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001615/0.06743, allocations: 207.3 kB / 359.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003132/0.06774, allocations: 91.19 kB / 359.3 MB, free: 11.69 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002611/0.068, allocations: 120.5 kB / 359.4 MB, free: 11.57 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.068, allocations: 0 / 359.4 MB, free: 11.57 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02541/0.09341, allocations: 12.55 MB / 372 MB, free: 15.19 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.975/7.068, allocations: 3.266 kB / 372 MB, free: 15.19 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable load.phi in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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.w,speed.flange.phi [Calling sys.exit(0), Time elapsed: 8.835613772273064]