Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007008/0.0007008, allocations: 79.69 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008685/0.0008685, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9359/0.9359, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.519e-05/2.689e-05, allocations: 2.281 kB / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003674/0.003701, allocations: 2.315 MB / 326.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.005104, allocations: 0.8259 MB / 327.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001687/0.005272, allocations: 11.94 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002764/0.005549, allocations: 59.5 kB / 327.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.005767, allocations: 75.36 kB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004914/0.006259, allocations: 195.2 kB / 328 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003861/0.006645, allocations: 407.4 kB / 328.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.006811, allocations: 75.55 kB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003254/0.007137, allocations: 235.5 kB / 328.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.007316, allocations: 147.6 kB / 328.9 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.469e-05/0.007361, allocations: 39.94 kB / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.241e-05/0.007393, allocations: 32 kB / 328.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.015e-05/0.007483, allocations: 119.6 kB / 329.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.726e-05/0.007561, allocations: 103.7 kB / 329.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003224/0.007883, allocations: 394.7 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.007888, allocations: 4 kB / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.00789, allocations: 0 / 329.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.007896, allocations: 4 kB / 329.5 MB, free: 10.95 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.0008207/0.008717, allocations: 0.6018 MB / 330.1 MB, free: 10.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.008756, allocations: 8.031 kB / 330.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.362e-05/0.00881, allocations: 74.72 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.901e-05/0.008869, allocations: 44.7 kB / 330.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003776/0.009247, allocations: 253 kB / 330.5 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002262/0.009473, allocations: 347.9 kB / 330.9 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.12e-05/0.009524, allocations: 40.36 kB / 330.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008878/0.01041, allocations: 0.5671 MB / 331.5 MB, free: 8.871 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.01043, allocations: 4.188 kB / 331.5 MB, free: 8.867 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.565e-05/0.01046, allocations: 15.94 kB / 331.5 MB, free: 8.852 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.01047, allocations: 8 kB / 331.5 MB, free: 8.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008298/0.0113, allocations: 0.5113 MB / 332 MB, free: 8.332 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.01232, allocations: 0.8953 MB / 332.9 MB, free: 7.375 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008538/0.01318, allocations: 474.6 kB / 333.4 MB, free: 6.875 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003688/0.01355, allocations: 248.3 kB / 333.6 MB, free: 6.621 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.01358, allocations: 8 kB / 333.6 MB, free: 6.613 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.452e-05/0.01361, allocations: 42.55 kB / 333.7 MB, free: 6.562 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.804e-06/0.01361, allocations: 3.938 kB / 333.7 MB, free: 6.559 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.0185/0.03211, allocations: 5.799 MB / 339.5 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000126/0.03224, allocations: 145 kB / 339.6 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.03246, allocations: 265.8 kB / 339.9 MB, free: 312 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/0.03252, allocations: 37.7 kB / 339.9 MB, free: 268 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.211e-05/0.03259, allocations: 149.7 kB / 340 MB, free: 116 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.03273, allocations: 198.4 kB / 340.2 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.03292, allocations: 94.3 kB / 340.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.03309, allocations: 354.7 kB / 340.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000915/0.034, allocations: 0.6025 MB / 341.3 MB, free: 14.86 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009279/0.03493, allocations: 0.6936 MB / 342 MB, free: 14.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001774/0.03671, allocations: 1.114 MB / 343.1 MB, free: 13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.03671, allocations: 4 kB / 343.1 MB, free: 12.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001937/0.03865, allocations: 1.294 MB / 344.4 MB, free: 11.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.03867, allocations: 11.98 kB / 344.4 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.03868, allocations: 4 kB / 344.4 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.03869, allocations: 4 kB / 344.4 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006093/0.0393, allocations: 179.7 kB / 344.6 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.03931, allocations: 4 kB / 344.6 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004155/0.03973, allocations: 104 kB / 344.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/0.03977, allocations: 19.94 kB / 344.7 MB, free: 11.37 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.0002485/0.04002, allocations: 173.7 kB / 344.9 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002068/0.04023, allocations: 165.7 kB / 345 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.04033, allocations: 67.61 kB / 345.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.04034, allocations: 8.094 kB / 345.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/0.04035, allocations: 15.86 kB / 345.1 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.04036, allocations: 0 / 345.1 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00312/0.04348, allocations: 1.996 MB / 347.1 MB, free: 8.758 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.782e-05/0.04349, allocations: 8 kB / 347.1 MB, free: 8.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004535/0.04395, allocations: 183.7 kB / 347.3 MB, free: 8.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.04396, allocations: 16 kB / 347.3 MB, free: 8.555 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.04399, allocations: 24 kB / 347.3 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.678e-05/0.04401, allocations: 19.88 kB / 347.4 MB, free: 8.512 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.685e-06/0.04402, allocations: 19.92 kB / 347.4 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.04587, allocations: 1.562 MB / 348.9 MB, free: 6.777 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001752/0.04604, allocations: 103.6 kB / 349 MB, free: 6.676 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.73e-05/0.04609, allocations: 28 kB / 349.1 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.0464, allocations: 83.91 kB / 349.2 MB, free: 6.566 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001381/0.04654, allocations: 99.64 kB / 349.3 MB, free: 6.469 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.04656, allocations: 28 kB / 349.3 MB, free: 6.441 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.04669, allocations: 193.2 kB / 349.5 MB, free: 6.254 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04669, allocations: 0 / 349.5 MB, free: 6.254 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005427/0.04723, allocations: 116 kB / 349.6 MB, free: 6.141 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.002402/0.04964, allocations: 2.126 MB / 351.7 MB, free: 3.855 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.05143, allocations: 1.003 MB / 352.7 MB, free: 2.848 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/0.05144, allocations: 64 / 352.7 MB, free: 2.848 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006304/0.05207, allocations: 349.9 kB / 353.1 MB, free: 2.508 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007497/0.05282, allocations: 139.9 kB / 353.2 MB, free: 2.375 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008493/0.06131, allocations: 6.538 MB / 359.7 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002352/0.06155, allocations: 228.7 kB / 360 MB, free: 11.19 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004077/0.06196, allocations: 91.22 kB / 360 MB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000273/0.06223, allocations: 120.5 kB / 360.2 MB, free: 10.98 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.06223, allocations: 0 / 360.2 MB, free: 10.98 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02892/0.09115, allocations: 12.92 MB / 373.1 MB, free: 14.24 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.234/7.326, allocations: 7.812 kB / 373.1 MB, free: 14.23 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.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.229316451586783]