Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001808/0.001808, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.002467/0.002467, allocations: 196.6 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.405/1.405, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] 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.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 47.92 kB / 370.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3086, allocations: 52.18 MB / 422.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003859/0.3124, allocations: 2.299 MB / 424.8 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.314, allocations: 0.7872 MB / 425.6 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.3141, allocations: 11.94 kB / 425.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002627/0.3144, allocations: 55.5 kB / 425.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002163/0.3146, allocations: 71.47 kB / 425.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005425/0.3152, allocations: 211 kB / 426 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004437/0.3156, allocations: 387.5 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.3158, allocations: 77.53 kB / 426.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002367/0.316, allocations: 167.4 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002419/0.3163, allocations: 167.2 kB / 426.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.157e-05/0.3163, allocations: 36 kB / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.263e-05/0.3164, allocations: 36 kB / 426.8 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.3165, allocations: 111.7 kB / 426.9 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001485/0.3167, allocations: 139.3 kB / 427.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004557/0.3171, allocations: 378.3 kB / 427.4 MB, free: 9.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3171, allocations: 0 / 427.4 MB, free: 9.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3171, allocations: 4 kB / 427.4 MB, free: 9.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.3171, allocations: 0 / 427.4 MB, free: 9.461 MB / 334.1 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.001307/0.3184, allocations: 0.6063 MB / 428.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3185, allocations: 12.03 kB / 428.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.458e-05/0.3186, allocations: 70.72 kB / 428.1 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.697e-05/0.3187, allocations: 48.7 kB / 428.2 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005002/0.3192, allocations: 249.4 kB / 428.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003572/0.3195, allocations: 351.9 kB / 428.8 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.909e-05/0.3196, allocations: 32.36 kB / 428.8 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.3209, allocations: 0.5814 MB / 429.4 MB, free: 7.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.3209, allocations: 3.953 kB / 429.4 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.584e-05/0.321, allocations: 12 kB / 429.4 MB, free: 7.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.321, allocations: 11.98 kB / 429.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001505/0.3225, allocations: 0.5113 MB / 429.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.3241, allocations: 0.8984 MB / 430.8 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001546/0.3256, allocations: 470.6 kB / 431.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000697/0.3263, allocations: 239.4 kB / 431.5 MB, free: 5.125 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.686e-05/0.3264, allocations: 11.94 kB / 431.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.3264, allocations: 42.55 kB / 431.6 MB, free: 5.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.184e-06/0.3264, allocations: 0 / 431.6 MB, free: 5.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.03844/0.3649, allocations: 5.788 MB / 437.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.365, allocations: 148.9 kB / 437.5 MB, free: 15.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.3653, allocations: 273.8 kB / 437.8 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.041e-05/0.3654, allocations: 37.7 kB / 437.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3655, allocations: 145.8 kB / 437.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002256/0.3658, allocations: 206.3 kB / 438.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000289/0.3661, allocations: 118.6 kB / 438.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.3662, allocations: 346.8 kB / 438.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.3679, allocations: 0.6188 MB / 439.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001897/0.3698, allocations: 0.8042 MB / 440 MB, free: 12.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/0.3732, allocations: 1.256 MB / 441.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.3732, allocations: 11.94 kB / 441.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003749/0.3769, allocations: 1.403 MB / 442.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/0.377, allocations: 8 kB / 442.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.377, allocations: 8 kB / 442.7 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.377, allocations: 8 kB / 442.7 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.3783, allocations: 219.6 kB / 442.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.727e-05/0.3783, allocations: 16.34 kB / 442.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009363/0.3793, allocations: 99.77 kB / 443 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-05/0.3793, allocations: 32 kB / 443.1 MB, free: 9.305 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (84): * Single equations (assignments): 84 * 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.0003488/0.3797, allocations: 193.5 kB / 443.3 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003271/0.38, allocations: 157.4 kB / 443.4 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/0.3802, allocations: 67.61 kB / 443.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.3802, allocations: 12.23 kB / 443.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.078e-05/0.3802, allocations: 3.938 kB / 443.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.3802, allocations: 7.969 kB / 443.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005027/0.3853, allocations: 1.988 MB / 445.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/0.3853, allocations: 12 kB / 445.5 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007452/0.386, allocations: 180.2 kB / 445.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.386, allocations: 19.92 kB / 445.7 MB, free: 6.484 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.3861, allocations: 31.94 kB / 445.7 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.549e-05/0.3861, allocations: 15.94 kB / 445.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-05/0.3861, allocations: 15.94 kB / 445.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003482/0.3896, allocations: 1.585 MB / 447.4 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002518/0.3899, allocations: 103.6 kB / 447.5 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.349e-05/0.3899, allocations: 24 kB / 447.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005914/0.3905, allocations: 83.97 kB / 447.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.3907, allocations: 95.64 kB / 447.7 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.978e-05/0.3908, allocations: 32 kB / 447.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000206/0.391, allocations: 193.2 kB / 447.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.391, allocations: 0 / 447.9 MB, free: 4.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006647/0.3916, allocations: 128 kB / 448 MB, free: 4.039 MB / 350.1 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.003762/0.3954, allocations: 2.161 MB / 450.2 MB, free: 1.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002852/0.3982, allocations: 1.041 MB / 451.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.3983, allocations: 0 / 451.2 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.3993, allocations: 339.2 kB / 451.5 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009246/0.4002, allocations: 145 kB / 451.7 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01385/0.4141, allocations: 6.957 MB / 458.6 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.4144, allocations: 232.6 kB / 458.9 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005287/0.4149, allocations: 112 kB / 459 MB, free: 8.398 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003922/0.4153, allocations: 115.4 kB / 459.1 MB, free: 8.289 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.4153, allocations: 0 / 459.1 MB, free: 8.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04852/0.4638, allocations: 13.04 MB / 472.1 MB, free: 11.47 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.8, allocations: 3.938 kB / 472.1 MB, free: 11.47 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_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: 14.450177993159741]