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.001676/0.001676, allocations: 124.1 kB / 17.79 MB, free: 5.25 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.00239/0.00239, allocations: 198.8 kB / 20.73 MB, free: 2.309 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.542/1.542, allocations: 225.6 MB / 249.1 MB, free: 3.586 MB / 190.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.001527/0.001527, allocations: 43.92 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1121, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004155/0.1163, allocations: 2.396 MB / 420.2 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.1179, allocations: 0.8299 MB / 421 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001691/0.1181, allocations: 15.88 kB / 421 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00032/0.1184, allocations: 63.5 kB / 421.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002319/0.1187, allocations: 67.48 kB / 421.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005726/0.1192, allocations: 191.6 kB / 421.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004944/0.1197, allocations: 395.5 kB / 421.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002106/0.1199, allocations: 75.52 kB / 421.8 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002744/0.1202, allocations: 175.3 kB / 422 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002844/0.1205, allocations: 179.3 kB / 422.1 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.311e-05/0.1206, allocations: 36 kB / 422.2 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.86e-05/0.1206, allocations: 32 kB / 422.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.1208, allocations: 111.6 kB / 422.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001776/0.1209, allocations: 167 kB / 422.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004864/0.1214, allocations: 370.3 kB / 422.8 MB, free: 7.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1214, allocations: 4 kB / 422.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1214, allocations: 0 / 422.8 MB, free: 7.508 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.1214, allocations: 4 kB / 422.8 MB, free: 7.504 MB / 350.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.001373/0.1228, allocations: 0.6778 MB / 423.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1229, allocations: 11.97 kB / 423.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.764e-05/0.1229, allocations: 74.72 kB / 423.6 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.922e-05/0.123, allocations: 48.7 kB / 423.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005252/0.1236, allocations: 311.3 kB / 424 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002245/0.1238, allocations: 146.3 kB / 424.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.697e-05/0.1238, allocations: 24.38 kB / 424.1 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.1251, allocations: 0.5666 MB / 424.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.1251, allocations: 3.953 kB / 424.7 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.1252, allocations: 12 kB / 424.7 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.1252, allocations: 8 kB / 424.7 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001472/0.1267, allocations: 0.5152 MB / 425.2 MB, free: 4.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.1284, allocations: 1.033 MB / 426.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.1301, allocations: 478.5 kB / 426.7 MB, free: 3.363 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006677/0.1308, allocations: 235.3 kB / 427 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.352e-05/0.1308, allocations: 12 kB / 427 MB, free: 3.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.131e-05/0.1309, allocations: 42.55 kB / 427 MB, free: 3.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.194e-06/0.1309, allocations: 0 / 427 MB, free: 3.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04013/0.171, allocations: 5.759 MB / 432.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001484/0.1711, allocations: 145 kB / 432.9 MB, free: 13.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004016/0.1715, allocations: 262.5 kB / 433.2 MB, free: 12.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.975e-05/0.1716, allocations: 41.7 kB / 433.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.1718, allocations: 157.7 kB / 433.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002809/0.1721, allocations: 198.4 kB / 433.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003297/0.1724, allocations: 114.6 kB / 433.7 MB, free: 12.33 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.1726, allocations: 342.8 kB / 434 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/0.1743, allocations: 0.6226 MB / 434.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001867/0.1762, allocations: 0.7925 MB / 435.4 MB, free: 10.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003251/0.1795, allocations: 1.251 MB / 436.7 MB, free: 9.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.1795, allocations: 4 kB / 436.7 MB, free: 9.156 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003923/0.1834, allocations: 1.398 MB / 438.1 MB, free: 7.754 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.087e-05/0.1834, allocations: 8 kB / 438.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.1834, allocations: 7.938 kB / 438.1 MB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.786e-05/0.1835, allocations: 8 kB / 438.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001393/0.1849, allocations: 215.7 kB / 438.3 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.131e-05/0.1849, allocations: 15.98 kB / 438.3 MB, free: 7.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009897/0.1859, allocations: 95.78 kB / 438.4 MB, free: 7.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.579e-05/0.186, allocations: 24 kB / 438.4 MB, free: 7.387 MB / 366.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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0004081/0.1864, allocations: 197.6 kB / 438.6 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003761/0.1867, allocations: 169.9 kB / 438.8 MB, free: 7.012 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002275/0.187, allocations: 67.61 kB / 438.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.187, allocations: 8 kB / 438.9 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.187, allocations: 0 / 438.9 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.187, allocations: 7.984 kB / 438.9 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005131/0.1921, allocations: 2.18 MB / 441.1 MB, free: 4.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.631e-05/0.1922, allocations: 12 kB / 441.1 MB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007831/0.1929, allocations: 191.8 kB / 441.3 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.1929, allocations: 12 kB / 441.3 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.818e-05/0.193, allocations: 28 kB / 441.3 MB, free: 4.328 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.706e-05/0.193, allocations: 19.92 kB / 441.3 MB, free: 4.309 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.239e-05/0.193, allocations: 15.94 kB / 441.3 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003463/0.1965, allocations: 1.572 MB / 442.9 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002856/0.1968, allocations: 181 kB / 443.1 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.022e-05/0.1969, allocations: 31.98 kB / 443.1 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006046/0.1975, allocations: 75.98 kB / 443.2 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000225/0.1977, allocations: 99.64 kB / 443.3 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.114e-05/0.1977, allocations: 32 kB / 443.3 MB, free: 2.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002089/0.198, allocations: 186 kB / 443.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.198, allocations: 0 / 443.5 MB, free: 1.953 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007353/0.1987, allocations: 123.9 kB / 443.6 MB, free: 1.832 MB / 366.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.2115/0.4102, allocations: 2.133 MB / 445.7 MB, free: 30.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.4131, allocations: 1.028 MB / 446.8 MB, free: 30.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/0.4131, allocations: 2 kB / 446.8 MB, free: 30.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.4141, allocations: 334.3 kB / 447.1 MB, free: 30.68 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.4152, allocations: 150.9 kB / 447.2 MB, free: 30.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01343/0.4286, allocations: 6.898 MB / 454.1 MB, free: 27.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004296/0.429, allocations: 0.8304 MB / 455 MB, free: 26.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005363/0.4296, allocations: 102.7 kB / 455.1 MB, free: 26.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004086/0.43, allocations: 122.7 kB / 455.2 MB, free: 26.55 MB / 366.1 MB Notification: Performance of SimCode: time 1.002e-06/0.43, allocations: 2.625 kB / 455.2 MB, free: 26.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05867/0.4886, allocations: 11.71 MB / 466.9 MB, free: 23.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.147/9.636, allocations: 4.906 kB / 466.9 MB, free: 23.4 MB / 366.1 MB " [Timeout remaining time 650] (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: 12.422876079101115]