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.0009127/0.0009127, allocations: 88.05 kB / 20.67 MB, free: 3.871 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.0007669/0.0007669, allocations: 145.1 kB / 23.93 MB, free: 0.6172 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.9333/0.9333, allocations: 173.4 MB / 200.5 MB, free: 9.426 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.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 1.533e-06/1.533e-06, allocations: 0 / 318.4 MB, free: 6.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.097e-05/2.25e-05, allocations: 2.281 kB / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002861/0.002883, allocations: 2.248 MB / 320.7 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.004077, allocations: 0.7675 MB / 321.4 MB, free: 3.203 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.004226, allocations: 7.938 kB / 321.4 MB, free: 3.195 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002874/0.004514, allocations: 63.42 kB / 321.5 MB, free: 3.133 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001998/0.004713, allocations: 55.56 kB / 321.6 MB, free: 3.078 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004507/0.005164, allocations: 191.3 kB / 321.7 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003345/0.005499, allocations: 387.5 kB / 322.1 MB, free: 2.512 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001623/0.005661, allocations: 80.31 kB / 322.2 MB, free: 2.434 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002662/0.005927, allocations: 223.5 kB / 322.4 MB, free: 2.215 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001696/0.006097, allocations: 147.6 kB / 322.6 MB, free: 2.07 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.584e-05/0.006142, allocations: 36 kB / 322.6 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.133e-05/0.006174, allocations: 32 kB / 322.6 MB, free: 2.004 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.973e-05/0.006254, allocations: 99.69 kB / 322.7 MB, free: 1.906 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.939e-05/0.006333, allocations: 107.7 kB / 322.8 MB, free: 1.801 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.006632, allocations: 366.8 kB / 323.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.325e-06/0.006635, allocations: 0 / 323.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.006636, allocations: 0 / 323.2 MB, free: 1.441 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.006641, allocations: 4 kB / 323.2 MB, free: 1.438 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0008252/0.007466, allocations: 0.5515 MB / 323.7 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.007506, allocations: 12.92 kB / 323.8 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.476e-05/0.007561, allocations: 66.72 kB / 323.8 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.514e-05/0.007616, allocations: 40.75 kB / 323.9 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003093/0.007926, allocations: 222.3 kB / 324.1 MB, free: 500 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.008118, allocations: 347.9 kB / 324.4 MB, free: 80 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.00816, allocations: 28.38 kB / 324.4 MB, free: 52 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007867/0.008946, allocations: 0.5703 MB / 325 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.008964, allocations: 4.141 kB / 325 MB, free: 15.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.692e-05/0.008991, allocations: 19.94 kB / 325 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.008998, allocations: 12 kB / 325 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007874/0.009786, allocations: 0.5113 MB / 325.6 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.01081, allocations: 0.8712 MB / 326.4 MB, free: 13.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009041/0.01171, allocations: 470.5 kB / 326.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003728/0.01208, allocations: 243.5 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.846e-05/0.01212, allocations: 15.91 kB / 327.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.01215, allocations: 42.5 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.664e-06/0.01215, allocations: 4 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.02067/0.03282, allocations: 5.734 MB / 332.9 MB, free: 7.406 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/0.03291, allocations: 160.9 kB / 333.1 MB, free: 7.219 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.03307, allocations: 204.3 kB / 333.3 MB, free: 7.008 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.698e-05/0.03313, allocations: 37.7 kB / 333.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.627e-05/0.03319, allocations: 141.8 kB / 333.5 MB, free: 6.824 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.03332, allocations: 194.3 kB / 333.6 MB, free: 6.633 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001762/0.0335, allocations: 90.3 kB / 333.7 MB, free: 6.539 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.03361, allocations: 346.7 kB / 334.1 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009228/0.03453, allocations: 0.6064 MB / 334.7 MB, free: 5.586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009554/0.03549, allocations: 0.6937 MB / 335.4 MB, free: 4.863 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.03718, allocations: 1.114 MB / 336.5 MB, free: 3.723 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.03719, allocations: 4 kB / 336.5 MB, free: 3.719 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002055/0.03924, allocations: 1.294 MB / 337.8 MB, free: 2.418 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.03926, allocations: 4 kB / 337.8 MB, free: 2.414 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.03927, allocations: 7.938 kB / 337.8 MB, free: 2.406 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.03929, allocations: 8.219 kB / 337.8 MB, free: 2.398 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000601/0.03989, allocations: 175.8 kB / 338 MB, free: 2.227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.0399, allocations: 7.938 kB / 338 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.04031, allocations: 91.81 kB / 338.1 MB, free: 2.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.362e-05/0.04035, allocations: 27.94 kB / 338.1 MB, free: 2.102 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.0002132/0.04056, allocations: 165.8 kB / 338.3 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001919/0.04076, allocations: 157.3 kB / 338.4 MB, free: 1.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.04086, allocations: 59.31 kB / 338.5 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.04086, allocations: 8 kB / 338.5 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.04087, allocations: 7.984 kB / 338.5 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.04088, allocations: 0 / 338.5 MB, free: 1.695 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002835/0.04371, allocations: 1.984 MB / 340.5 MB, free: 15.53 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.04372, allocations: 8.188 kB / 340.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.04409, allocations: 183.7 kB / 340.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.105e-05/0.0441, allocations: 16 kB / 340.7 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.04414, allocations: 28 kB / 340.7 MB, free: 15.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.208e-05/0.04415, allocations: 23.81 kB / 340.7 MB, free: 15.27 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/0.04416, allocations: 19.92 kB / 340.7 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001858/0.04601, allocations: 1.554 MB / 342.3 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/0.04613, allocations: 87.64 kB / 342.4 MB, free: 13.46 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.015e-05/0.04617, allocations: 27.98 kB / 342.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003/0.04647, allocations: 79.86 kB / 342.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.04661, allocations: 99.64 kB / 342.6 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.89e-05/0.04664, allocations: 36.05 kB / 342.6 MB, free: 13.22 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.194e-05/0.04672, allocations: 145.2 kB / 342.8 MB, free: 13.08 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04672, allocations: 0 / 342.8 MB, free: 13.08 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003862/0.04711, allocations: 119.9 kB / 342.9 MB, free: 12.96 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.002024/0.04913, allocations: 2.119 MB / 345 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.05069, allocations: 1.006 MB / 346 MB, free: 9.68 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.05069, allocations: 0 / 346 MB, free: 9.68 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005888/0.05128, allocations: 346.3 kB / 346.3 MB, free: 9.344 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005954/0.05188, allocations: 142.5 kB / 346.5 MB, free: 9.211 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00756/0.05944, allocations: 6.401 MB / 352.9 MB, free: 2.41 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001792/0.05962, allocations: 207.3 kB / 353.1 MB, free: 2.191 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002918/0.05991, allocations: 91.19 kB / 353.2 MB, free: 2.098 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002783/0.06019, allocations: 120.5 kB / 353.3 MB, free: 1.98 MB / 314.7 MB Notification: Performance of SimCode: time 1.283e-06/0.06019, allocations: 0 / 353.3 MB, free: 1.98 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02918/0.08936, allocations: 12.55 MB / 365.8 MB, free: 5.613 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.124/7.214, allocations: 7.266 kB / 365.9 MB, free: 5.609 MB / 330.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 9.170897566713393]