Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001611/0.001611, allocations: 119.9 kB / 17.74 MB, free: 5.344 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.001867/0.001867, allocations: 185.3 kB / 20.68 MB, free: 2.414 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.568/1.568, allocations: 222.9 MB / 246.4 MB, free: 4.199 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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 55.89 kB / 357.5 MB, free: 8.84 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1279/0.1295, allocations: 49.44 MB / 406.9 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004095/0.1336, allocations: 2.337 MB / 409.3 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.1353, allocations: 0.8026 MB / 410.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001686/0.1355, allocations: 4 kB / 410.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000353/0.1359, allocations: 51.58 kB / 410.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002269/0.1361, allocations: 63.48 kB / 410.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005902/0.1367, allocations: 179.6 kB / 410.3 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004621/0.1372, allocations: 379.6 kB / 410.7 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.1374, allocations: 100.1 kB / 410.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002452/0.1377, allocations: 163.4 kB / 411 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002675/0.1379, allocations: 179.3 kB / 411.1 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.1e-05/0.138, allocations: 32 kB / 411.2 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.694e-05/0.1381, allocations: 36 kB / 411.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.1382, allocations: 95.78 kB / 411.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001914/0.1384, allocations: 147.2 kB / 411.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004274/0.1388, allocations: 342.6 kB / 411.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1389, allocations: 0 / 411.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1389, allocations: 0 / 411.8 MB, free: 2.461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.168e-06/0.1389, allocations: 0 / 411.8 MB, free: 2.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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001274/0.1402, allocations: 0.6352 MB / 412.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/0.1402, allocations: 8.031 kB / 412.4 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.223e-05/0.1403, allocations: 74.72 kB / 412.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.92e-05/0.1404, allocations: 40.75 kB / 412.5 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.1409, allocations: 277.1 kB / 412.8 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.1411, allocations: 138.3 kB / 412.9 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.23e-05/0.1412, allocations: 28.38 kB / 413 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1424, allocations: 0.5659 MB / 413.5 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.1425, allocations: 7.953 kB / 413.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.327e-05/0.1425, allocations: 8 kB / 413.6 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.1425, allocations: 8 kB / 413.6 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.144, allocations: 0.5167 MB / 414.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.1456, allocations: 0.9985 MB / 415.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.1473, allocations: 0.5063 MB / 415.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006663/0.148, allocations: 267.4 kB / 415.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.617e-05/0.1481, allocations: 12.14 kB / 415.9 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.979e-05/0.1481, allocations: 42.48 kB / 415.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.715e-06/0.1481, allocations: 0 / 415.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03868/0.1868, allocations: 5.731 MB / 421.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.187, allocations: 152.9 kB / 421.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.1872, allocations: 191.5 kB / 422 MB, free: 7.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.059e-05/0.1873, allocations: 37.7 kB / 422 MB, free: 7.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.1874, allocations: 149.7 kB / 422.2 MB, free: 7.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002173/0.1877, allocations: 202.3 kB / 422.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003074/0.188, allocations: 106.7 kB / 422.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.1882, allocations: 342.8 kB / 422.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00172/0.1899, allocations: 0.6149 MB / 423.4 MB, free: 6.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001874/0.1918, allocations: 0.8041 MB / 424.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003237/0.195, allocations: 1.243 MB / 425.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.1951, allocations: 4 kB / 425.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003807/0.1989, allocations: 1.401 MB / 426.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.1989, allocations: 8 kB / 426.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.1989, allocations: 8.281 kB / 426.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.762e-05/0.199, allocations: 12 kB / 426.9 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/0.2003, allocations: 203.7 kB / 427.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.173e-05/0.2004, allocations: 12.31 kB / 427.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009856/0.2014, allocations: 107.8 kB / 427.2 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.692e-05/0.2015, allocations: 28 kB / 427.2 MB, free: 2.5 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: 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.0003562/0.2018, allocations: 181.6 kB / 427.4 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.2022, allocations: 161.2 kB / 427.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002011/0.2024, allocations: 63.3 kB / 427.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/0.2024, allocations: 8 kB / 427.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.427e-06/0.2024, allocations: 0 / 427.6 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.181e-05/0.2024, allocations: 7.984 kB / 427.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2356/0.438, allocations: 2.165 MB / 429.8 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.21e-05/0.4381, allocations: 10.41 kB / 429.8 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007884/0.4389, allocations: 189.2 kB / 430 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.729e-05/0.4389, allocations: 14.12 kB / 430 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.971e-05/0.439, allocations: 21.62 kB / 430 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.877e-05/0.439, allocations: 20.39 kB / 430.1 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.347e-05/0.439, allocations: 14.12 kB / 430.1 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.4421, allocations: 1.562 MB / 431.6 MB, free: 22.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.4423, allocations: 162 kB / 431.8 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.646e-05/0.4424, allocations: 33.75 kB / 431.8 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005757/0.443, allocations: 75.47 kB / 431.9 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.4432, allocations: 94.48 kB / 432 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.4432, allocations: 32.23 kB / 432 MB, free: 22.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.4434, allocations: 136.6 kB / 432.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4434, allocations: 0 / 432.2 MB, free: 21.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006291/0.444, allocations: 124.6 kB / 432.3 MB, free: 21.96 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: 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.003234/0.4472, allocations: 2.136 MB / 434.4 MB, free: 20.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003179/0.4504, allocations: 1.136 MB / 435.5 MB, free: 20.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.4505, allocations: 4.156 kB / 435.6 MB, free: 20.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.4515, allocations: 334.7 kB / 435.9 MB, free: 20.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009226/0.4524, allocations: 152 kB / 436 MB, free: 20.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.4652, allocations: 6.779 MB / 442.8 MB, free: 18.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.4655, allocations: 0.8189 MB / 443.6 MB, free: 17.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005194/0.466, allocations: 97.3 kB / 443.7 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.4664, allocations: 117 kB / 443.8 MB, free: 17.37 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.4664, allocations: 0 / 443.8 MB, free: 17.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04219/0.5086, allocations: 11.3 MB / 455.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.931/9.439, allocations: 9.094 kB / 455.1 MB, free: 13.71 MB / 350.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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.277092227945104]