Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.0007897/0.0007897, allocations: 76.36 kB / 20.67 MB, free: 3.895 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.0008545/0.0008545, allocations: 156.9 kB / 23.95 MB, free: 0.6133 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.852/0.852, allocations: 177 MB / 204.1 MB, free: 5.746 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.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.455e-06/2.455e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.531e-05/2.776e-05, allocations: 2.844 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003894/0.003922, allocations: 2.313 MB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.005567, allocations: 0.8298 MB / 327.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000178/0.005745, allocations: 7.938 kB / 327.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003079/0.006053, allocations: 59.56 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.006313, allocations: 71.42 kB / 327.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005629/0.006876, allocations: 202.6 kB / 328 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004548/0.007331, allocations: 395.5 kB / 328.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.007522, allocations: 79.58 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004045/0.007927, allocations: 239.4 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003876/0.008314, allocations: 151.5 kB / 328.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.992e-05/0.008384, allocations: 36 kB / 328.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.059e-05/0.008435, allocations: 32 kB / 328.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.008559, allocations: 115.6 kB / 329 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001212/0.008681, allocations: 111.7 kB / 329.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.009125, allocations: 390.7 kB / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.009127, allocations: 0 / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.009129, allocations: 0 / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.009135, allocations: 0 / 329.5 MB, free: 10.89 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001138/0.01027, allocations: 0.5987 MB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.01031, allocations: 15.92 kB / 330.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.218e-05/0.0104, allocations: 74.73 kB / 330.2 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.882e-05/0.01047, allocations: 44.7 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004246/0.0109, allocations: 253.1 kB / 330.5 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002629/0.01116, allocations: 347.9 kB / 330.8 MB, free: 9.445 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-05/0.01122, allocations: 28.38 kB / 330.8 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.01239, allocations: 0.5742 MB / 331.4 MB, free: 8.812 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.01241, allocations: 4.188 kB / 331.4 MB, free: 8.809 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.657e-05/0.01245, allocations: 15.94 kB / 331.4 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.01246, allocations: 8 kB / 331.4 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.01377, allocations: 0.5152 MB / 331.9 MB, free: 8.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.01548, allocations: 0.8986 MB / 332.8 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.01686, allocations: 474.5 kB / 333.3 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005955/0.01745, allocations: 243.4 kB / 333.5 MB, free: 6.559 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.197e-05/0.0175, allocations: 8 kB / 333.6 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.01752, allocations: 42.5 kB / 333.6 MB, free: 6.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.174e-06/0.01752, allocations: 4 kB / 333.6 MB, free: 6.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.02221/0.03974, allocations: 5.795 MB / 339.4 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/0.03984, allocations: 152.9 kB / 339.5 MB, free: 0.5 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.04007, allocations: 265.8 kB / 339.8 MB, free: 240 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.591e-05/0.04012, allocations: 41.7 kB / 339.8 MB, free: 192 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.178e-05/0.04019, allocations: 149.7 kB / 340 MB, free: 40 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001338/0.04033, allocations: 194.5 kB / 340.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.0405, allocations: 98.28 kB / 340.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.068e-05/0.04059, allocations: 346.6 kB / 340.6 MB, free: 15.4 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009058/0.04149, allocations: 0.6103 MB / 341.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009329/0.04243, allocations: 0.6937 MB / 341.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/0.04409, allocations: 1.114 MB / 343 MB, free: 12.92 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.04409, allocations: 4 kB / 343 MB, free: 12.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002002/0.04609, allocations: 1.297 MB / 344.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.04611, allocations: 4 kB / 344.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.04612, allocations: 4.219 kB / 344.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.864e-05/0.04614, allocations: 8 kB / 344.4 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005928/0.04673, allocations: 175.7 kB / 344.5 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.04674, allocations: 11.92 kB / 344.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.04714, allocations: 99.72 kB / 344.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.04718, allocations: 23.98 kB / 344.7 MB, free: 11.3 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.0002291/0.04741, allocations: 169.8 kB / 344.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001959/0.04761, allocations: 161.7 kB / 345 MB, free: 10.96 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.04771, allocations: 71.61 kB / 345 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.04771, allocations: 8 kB / 345.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.04772, allocations: 4 kB / 345.1 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.04773, allocations: 4.078 kB / 345.1 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002686/0.05042, allocations: 1.98 MB / 347 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/0.05043, allocations: 16.19 kB / 347.1 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003698/0.0508, allocations: 179.7 kB / 347.2 MB, free: 8.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.598e-06/0.05081, allocations: 16 kB / 347.3 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.195e-05/0.05084, allocations: 28 kB / 347.3 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.069e-05/0.05085, allocations: 23.86 kB / 347.3 MB, free: 8.453 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.05086, allocations: 19.88 kB / 347.3 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001809/0.05267, allocations: 1.554 MB / 348.9 MB, free: 6.727 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.05282, allocations: 107.6 kB / 349 MB, free: 6.621 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.05286, allocations: 31.92 kB / 349 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/0.05315, allocations: 75.92 kB / 349.1 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.05329, allocations: 103.6 kB / 349.2 MB, free: 6.414 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.05332, allocations: 32.3 kB / 349.2 MB, free: 6.383 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001213/0.05344, allocations: 189.2 kB / 349.4 MB, free: 6.199 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.05344, allocations: 0 / 349.4 MB, free: 6.199 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003898/0.05383, allocations: 120 kB / 349.5 MB, free: 6.082 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.002044/0.05587, allocations: 2.142 MB / 351.7 MB, free: 3.781 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.05747, allocations: 0.9907 MB / 352.7 MB, free: 2.785 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.05747, allocations: 4 kB / 352.7 MB, free: 2.781 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.05805, allocations: 342.4 kB / 353 MB, free: 2.449 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006292/0.05868, allocations: 147.8 kB / 353.1 MB, free: 2.309 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007708/0.06639, allocations: 6.526 MB / 359.7 MB, free: 11.38 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.06658, allocations: 228.7 kB / 359.9 MB, free: 11.13 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003418/0.06692, allocations: 95.2 kB / 360 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002682/0.06719, allocations: 120.5 kB / 360.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of SimCode: time 1.273e-06/0.06719, allocations: 0 / 360.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02814/0.09533, allocations: 12.93 MB / 373 MB, free: 14.15 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.871/6.967, allocations: 8 kB / 373 MB, free: 14.14 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_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_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_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.718941017054021]