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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 107.5 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001473/0.001473, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.554/1.554, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 51.92 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1205, allocations: 49.44 MB / 350.2 MB, free: 4.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.005567/0.1261, allocations: 2.37 MB / 352.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.1282, allocations: 0.8377 MB / 353.4 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003623/0.1286, allocations: 7.938 kB / 353.4 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003981/0.129, allocations: 55.58 kB / 353.4 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003951/0.1294, allocations: 67.48 kB / 353.5 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008766/0.1303, allocations: 195.6 kB / 353.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006783/0.131, allocations: 395.5 kB / 354.1 MB, free: 380 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003013/0.1313, allocations: 103.5 kB / 354.2 MB, free: 276 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004282/0.1318, allocations: 159.5 kB / 354.3 MB, free: 116 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000396/0.1322, allocations: 183.2 kB / 354.5 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001029/0.1323, allocations: 36 kB / 354.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.56e-05/0.1324, allocations: 36 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.1326, allocations: 107.6 kB / 354.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000225/0.1328, allocations: 163 kB / 354.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.1333, allocations: 359 kB / 355.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.1333, allocations: 0 / 355.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1333, allocations: 0 / 355.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.459e-05/0.1334, allocations: 4 kB / 355.2 MB, free: 15.24 MB / 302.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.001604/0.135, allocations: 0.6704 MB / 355.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.293e-05/0.135, allocations: 15.89 kB / 355.9 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001309/0.1352, allocations: 62.73 kB / 355.9 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.1353, allocations: 52.45 kB / 356 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000529/0.1359, allocations: 299.1 kB / 356.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002391/0.1361, allocations: 134.3 kB / 356.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.425e-05/0.1362, allocations: 32.38 kB / 356.4 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001318/0.1375, allocations: 0.5814 MB / 357 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.1376, allocations: 4 kB / 357 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.169e-05/0.1376, allocations: 8 kB / 357 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.1376, allocations: 8 kB / 357 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.1392, allocations: 0.5074 MB / 357.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.141, allocations: 1.022 MB / 358.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.1427, allocations: 0.502 MB / 359.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006523/0.1433, allocations: 267.3 kB / 359.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.511e-05/0.1434, allocations: 16.14 kB / 359.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.501e-05/0.1435, allocations: 38.5 kB / 359.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.026e-06/0.1435, allocations: 0 / 359.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04053/0.184, allocations: 5.757 MB / 365.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.1842, allocations: 148.9 kB / 365.3 MB, free: 4.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003558/0.1846, allocations: 266.5 kB / 365.6 MB, free: 4.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.857e-05/0.1847, allocations: 37.7 kB / 365.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.1848, allocations: 145.5 kB / 365.7 MB, free: 4.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002614/0.1851, allocations: 193.3 kB / 365.9 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003431/0.1854, allocations: 110.6 kB / 366 MB, free: 4.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.1856, allocations: 350.8 kB / 366.4 MB, free: 3.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001704/0.1873, allocations: 0.6149 MB / 367 MB, free: 3.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/0.1892, allocations: 0.8002 MB / 367.8 MB, free: 2.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003249/0.1924, allocations: 1.247 MB / 369 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.1925, allocations: 0 / 369 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.2008/0.3933, allocations: 1.397 MB / 370.4 MB, free: 25.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.3934, allocations: 7.688 kB / 370.4 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.009e-05/0.3934, allocations: 7.188 kB / 370.4 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.004e-05/0.3935, allocations: 9.062 kB / 370.5 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.395, allocations: 207.6 kB / 370.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.803e-05/0.395, allocations: 14.38 kB / 370.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001117/0.3962, allocations: 101.4 kB / 370.8 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.3963, allocations: 28.58 kB / 370.8 MB, free: 25.91 MB / 302.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.0003461/0.3966, allocations: 188 kB / 371 MB, free: 25.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003848/0.397, allocations: 167.2 kB / 371.1 MB, free: 25.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.3972, allocations: 71.27 kB / 371.2 MB, free: 25.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.3972, allocations: 8.156 kB / 371.2 MB, free: 25.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.958e-06/0.3972, allocations: 2.109 kB / 371.2 MB, free: 25.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.3973, allocations: 4.656 kB / 371.2 MB, free: 25.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005173/0.4024, allocations: 2.184 MB / 373.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.524e-05/0.4025, allocations: 11.08 kB / 373.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008488/0.4034, allocations: 188.6 kB / 373.6 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.805e-05/0.4034, allocations: 13.41 kB / 373.6 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.466e-05/0.4035, allocations: 25.72 kB / 373.6 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-05/0.4035, allocations: 19.64 kB / 373.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-05/0.4036, allocations: 23.25 kB / 373.7 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003258/0.4068, allocations: 1.557 MB / 375.2 MB, free: 23.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000256/0.4071, allocations: 180 kB / 375.4 MB, free: 23.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.4072, allocations: 28.3 kB / 375.5 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006623/0.4079, allocations: 80.38 kB / 375.5 MB, free: 23.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002173/0.4081, allocations: 96.5 kB / 375.6 MB, free: 23.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.672e-05/0.4082, allocations: 32.17 kB / 375.7 MB, free: 23.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002107/0.4084, allocations: 184.3 kB / 375.8 MB, free: 23.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.31e-07/0.4084, allocations: 1.344 kB / 375.8 MB, free: 23.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000895/0.4093, allocations: 127.3 kB / 376 MB, free: 23.6 MB / 302.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.00376/0.4131, allocations: 2.133 MB / 378.1 MB, free: 22.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003276/0.4164, allocations: 1.152 MB / 379.2 MB, free: 21.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/0.4164, allocations: 1.906 kB / 379.2 MB, free: 21.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001126/0.4175, allocations: 344.3 kB / 379.6 MB, free: 21.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.4187, allocations: 147 kB / 379.7 MB, free: 21.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/0.4338, allocations: 6.909 MB / 386.6 MB, free: 17.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004869/0.4344, allocations: 0.8328 MB / 387.5 MB, free: 16.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007262/0.4351, allocations: 98.83 kB / 387.6 MB, free: 16.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004551/0.4356, allocations: 119.3 kB / 387.7 MB, free: 16.2 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4356, allocations: 0 / 387.7 MB, free: 16.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03947/0.4751, allocations: 11.58 MB / 399.3 MB, free: 8.074 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.373/8.848, allocations: 0 / 399.3 MB, free: 8.074 MB / 302.1 MB (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.0016 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) 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) "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! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi