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.0008661/0.0008661, 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.0008252/0.0008252, 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.9108/0.9108, allocations: 173.4 MB / 200.4 MB, free: 9.445 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.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 1.713e-06/1.713e-06, allocations: 0 / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.487e-05/2.658e-05, allocations: 6.281 kB / 318.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002916/0.002943, allocations: 2.273 MB / 320.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.004133, allocations: 0.787 MB / 321.5 MB, free: 3.285 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001793/0.004312, allocations: 15.88 kB / 321.5 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002998/0.004612, allocations: 59.48 kB / 321.5 MB, free: 3.211 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002125/0.004825, allocations: 71.42 kB / 321.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004362/0.005261, allocations: 219.2 kB / 321.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003081/0.005569, allocations: 391.5 kB / 322.2 MB, free: 2.543 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.005726, allocations: 79.83 kB / 322.3 MB, free: 2.461 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002206/0.005946, allocations: 227.5 kB / 322.5 MB, free: 2.238 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.006105, allocations: 151.5 kB / 322.7 MB, free: 2.09 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.72e-05/0.006152, allocations: 36 kB / 322.7 MB, free: 2.055 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.312e-05/0.006185, allocations: 36 kB / 322.7 MB, free: 2.02 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.733e-05/0.006273, allocations: 115.6 kB / 322.8 MB, free: 1.906 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.038e-05/0.006353, allocations: 107.7 kB / 322.9 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003075/0.00666, allocations: 398.7 kB / 323.3 MB, free: 1.41 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.006663, allocations: 0 / 323.3 MB, free: 1.41 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.006664, allocations: 0 / 323.3 MB, free: 1.41 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.006669, allocations: 0 / 323.3 MB, free: 1.41 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008219/0.007491, allocations: 0.6018 MB / 323.9 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.007528, allocations: 8.922 kB / 323.9 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.807e-05/0.007586, allocations: 74.72 kB / 324 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.895e-05/0.007645, allocations: 48.64 kB / 324.1 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.007967, allocations: 253.1 kB / 324.3 MB, free: 380 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004432/0.00841, allocations: 347.9 kB / 324.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.318e-05/0.008454, allocations: 32.38 kB / 324.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008237/0.009277, allocations: 0.571 MB / 325.3 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.009293, allocations: 8.141 kB / 325.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.009318, allocations: 11.94 kB / 325.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.009327, allocations: 8 kB / 325.3 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008154/0.01014, allocations: 0.5268 MB / 325.8 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009827/0.01112, allocations: 0.8792 MB / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00089/0.01201, allocations: 478.3 kB / 327.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.01239, allocations: 243.3 kB / 327.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.01242, allocations: 7.984 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.032e-05/0.01244, allocations: 38.56 kB / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.01244, allocations: 0 / 327.4 MB, free: 13.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01913/0.03157, allocations: 5.793 MB / 333.2 MB, free: 7.223 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.004e-05/0.03166, allocations: 153 kB / 333.4 MB, free: 7.043 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.03188, allocations: 269.8 kB / 333.6 MB, free: 6.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.651e-05/0.03194, allocations: 41.7 kB / 333.7 MB, free: 6.723 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.225e-05/0.03201, allocations: 149.7 kB / 333.8 MB, free: 6.574 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/0.03214, allocations: 190.3 kB / 334 MB, free: 6.387 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001805/0.03232, allocations: 102.3 kB / 334.1 MB, free: 6.281 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.437e-05/0.03241, allocations: 338.8 kB / 334.5 MB, free: 5.941 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009189/0.03333, allocations: 0.6141 MB / 335.1 MB, free: 5.328 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009615/0.03429, allocations: 0.6898 MB / 335.8 MB, free: 4.609 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001718/0.03601, allocations: 1.122 MB / 336.9 MB, free: 3.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.03602, allocations: 0 / 336.9 MB, free: 3.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001985/0.038, allocations: 1.298 MB / 338.2 MB, free: 2.156 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.03802, allocations: 8 kB / 338.2 MB, free: 2.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.787e-06/0.03803, allocations: 3.938 kB / 338.2 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.03805, allocations: 4 kB / 338.2 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006302/0.03868, allocations: 179.8 kB / 338.4 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.03869, allocations: 8 kB / 338.4 MB, free: 1.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/0.03911, allocations: 91.83 kB / 338.5 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.483e-05/0.03916, allocations: 19.94 kB / 338.5 MB, free: 1.848 MB / 298.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.0002438/0.0394, allocations: 181.7 kB / 338.7 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004528/0.03986, allocations: 157.4 kB / 338.8 MB, free: 1.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000105/0.03996, allocations: 75.61 kB / 338.9 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.03997, allocations: 12 kB / 338.9 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.03998, allocations: 0 / 338.9 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.03998, allocations: 3.984 kB / 338.9 MB, free: 1.406 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002795/0.04278, allocations: 1.984 MB / 340.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.04278, allocations: 8.094 kB / 340.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003839/0.04317, allocations: 192.4 kB / 341.1 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.04318, allocations: 16 kB / 341.1 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.283e-05/0.04321, allocations: 28 kB / 341.1 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-05/0.04322, allocations: 23.86 kB / 341.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.692e-06/0.04323, allocations: 15.94 kB / 341.2 MB, free: 14.96 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.04512, allocations: 1.562 MB / 342.7 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.04528, allocations: 111.7 kB / 342.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.04532, allocations: 27.98 kB / 342.9 MB, free: 13.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/0.04563, allocations: 75.86 kB / 342.9 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.04577, allocations: 99.64 kB / 343 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.021e-05/0.0458, allocations: 35.98 kB / 343.1 MB, free: 12.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001281/0.04593, allocations: 185.2 kB / 343.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04593, allocations: 0 / 343.3 MB, free: 12.72 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004187/0.04635, allocations: 128 kB / 343.4 MB, free: 12.6 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.002089/0.04844, allocations: 2.142 MB / 345.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001886/0.05033, allocations: 0.9946 MB / 346.5 MB, free: 9.305 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.05033, allocations: 0 / 346.5 MB, free: 9.305 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005651/0.05089, allocations: 342.2 kB / 346.8 MB, free: 8.973 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006387/0.05153, allocations: 148.8 kB / 347 MB, free: 8.828 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007855/0.05939, allocations: 6.526 MB / 353.5 MB, free: 1.898 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000177/0.05956, allocations: 224.7 kB / 353.7 MB, free: 1.66 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003273/0.05989, allocations: 91.22 kB / 353.8 MB, free: 1.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/0.06017, allocations: 128.5 kB / 354 MB, free: 1.445 MB / 314.7 MB Notification: Performance of SimCode: time 1.423e-06/0.06017, allocations: 0 / 354 MB, free: 1.445 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.08884, allocations: 12.94 MB / 366.9 MB, free: 4.707 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.08/7.169, allocations: 11.48 kB / 366.9 MB, free: 4.699 MB / 330.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/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: 9.047516911290586]