Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.0008861/0.0008861, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.001406/0.001406, allocations: 170.3 kB / 23.95 MB, free: 0.6094 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.9106/0.9106, allocations: 177.1 MB / 204.3 MB, free: 5.723 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.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.924e-06/1.924e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.269e-05/2.462e-05, allocations: 8.609 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003675/0.0037, allocations: 2.25 MB / 326.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001761/0.005461, allocations: 0.7753 MB / 327.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.00565, allocations: 7.938 kB / 327.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003092/0.005959, allocations: 55.56 kB / 327.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00024/0.006199, allocations: 67.44 kB / 327.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003939/0.006593, allocations: 167.6 kB / 327.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002995/0.006893, allocations: 383.5 kB / 328.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.007041, allocations: 64.41 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003095/0.00735, allocations: 231.5 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.007504, allocations: 139.6 kB / 328.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.867e-05/0.007542, allocations: 36 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.224e-05/0.007574, allocations: 32 kB / 328.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.082e-05/0.007655, allocations: 99.69 kB / 328.8 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.353e-05/0.007729, allocations: 103.7 kB / 328.9 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000335/0.008064, allocations: 354.9 kB / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.465e-06/0.008066, allocations: 0 / 329.3 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.008068, allocations: 4 kB / 329.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.008073, allocations: 0 / 329.3 MB, free: 11.2 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0007645/0.008838, allocations: 0.5434 MB / 329.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.008873, allocations: 12.03 kB / 329.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.42e-05/0.008927, allocations: 70.72 kB / 329.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.008978, allocations: 36.75 kB / 329.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.009249, allocations: 216.2 kB / 330.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000192/0.009441, allocations: 347.9 kB / 330.5 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.465e-05/0.009486, allocations: 36.33 kB / 330.5 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007626/0.01025, allocations: 0.5471 MB / 331.1 MB, free: 9.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.01026, allocations: 4 kB / 331.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.686e-05/0.01029, allocations: 11.98 kB / 331.1 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.0103, allocations: 8 kB / 331.1 MB, free: 9.227 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007826/0.01108, allocations: 0.5113 MB / 331.6 MB, free: 8.715 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000922/0.012, allocations: 0.8866 MB / 332.5 MB, free: 7.766 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009619/0.01296, allocations: 475.5 kB / 333 MB, free: 7.266 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003538/0.01332, allocations: 239.4 kB / 333.2 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.219e-05/0.01335, allocations: 7.938 kB / 333.2 MB, free: 7.012 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.01337, allocations: 38.97 kB / 333.2 MB, free: 6.965 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.633e-06/0.01337, allocations: 3.938 kB / 333.2 MB, free: 6.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.02025/0.03362, allocations: 5.756 MB / 339 MB, free: 1.199 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.573e-05/0.03372, allocations: 145 kB / 339.1 MB, free: 1.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/0.03389, allocations: 203.1 kB / 339.3 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.528e-05/0.03395, allocations: 37.7 kB / 339.4 MB, free: 0.7695 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.926e-05/0.03403, allocations: 141.8 kB / 339.5 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.03417, allocations: 194.3 kB / 339.7 MB, free: 448 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002663/0.03444, allocations: 94.33 kB / 339.8 MB, free: 348 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.03459, allocations: 342.8 kB / 340.1 MB, free: 16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.03589, allocations: 0.6064 MB / 340.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001618/0.0375, allocations: 0.6937 MB / 341.4 MB, free: 14.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002331/0.03984, allocations: 1.115 MB / 342.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.03984, allocations: 0 / 342.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002034/0.04188, allocations: 1.305 MB / 343.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.0419, allocations: 8 kB / 343.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.04191, allocations: 0 / 343.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.04193, allocations: 4 kB / 343.9 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006044/0.04253, allocations: 183.8 kB / 344 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.04254, allocations: 4 kB / 344 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004122/0.04296, allocations: 91.81 kB / 344.1 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.472e-05/0.043, allocations: 16 kB / 344.1 MB, free: 11.91 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.0002527/0.04325, allocations: 169.7 kB / 344.3 MB, free: 11.74 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.04347, allocations: 161.8 kB / 344.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.782e-05/0.04357, allocations: 59.3 kB / 344.5 MB, free: 11.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.04358, allocations: 8.094 kB / 344.5 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.04359, allocations: 7.938 kB / 344.5 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.04359, allocations: 11.92 kB / 344.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002778/0.04637, allocations: 1.964 MB / 346.5 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.04638, allocations: 12 kB / 346.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004044/0.04679, allocations: 188.6 kB / 346.7 MB, free: 9.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.136e-05/0.0468, allocations: 12 kB / 346.7 MB, free: 9.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.806e-05/0.04684, allocations: 27.94 kB / 346.8 MB, free: 9.109 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.285e-05/0.04685, allocations: 19.92 kB / 346.8 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.04686, allocations: 15.94 kB / 346.8 MB, free: 9.074 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001979/0.04884, allocations: 1.558 MB / 348.3 MB, free: 7.363 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.04898, allocations: 87.64 kB / 348.4 MB, free: 7.277 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.703e-05/0.04902, allocations: 35.92 kB / 348.5 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.04932, allocations: 71.92 kB / 348.5 MB, free: 7.172 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.04947, allocations: 99.62 kB / 348.6 MB, free: 7.074 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.0495, allocations: 36 kB / 348.7 MB, free: 7.039 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001003/0.0496, allocations: 140.3 kB / 348.8 MB, free: 6.902 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0496, allocations: 4.062 kB / 348.8 MB, free: 6.898 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004132/0.05001, allocations: 120 kB / 348.9 MB, free: 6.781 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.002116/0.05213, allocations: 2.126 MB / 351.1 MB, free: 4.496 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001586/0.05371, allocations: 0.9985 MB / 352.1 MB, free: 3.488 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.341e-06/0.05372, allocations: 0 / 352.1 MB, free: 3.488 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.0543, allocations: 346.2 kB / 352.4 MB, free: 3.152 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006128/0.05491, allocations: 136.7 kB / 352.5 MB, free: 3.023 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007234/0.06215, allocations: 6.395 MB / 358.9 MB, free: 12.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001603/0.06231, allocations: 215.2 kB / 359.1 MB, free: 12 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003016/0.06261, allocations: 87.19 kB / 359.2 MB, free: 11.91 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/0.06288, allocations: 116.5 kB / 359.3 MB, free: 11.8 MB / 330.7 MB Notification: Performance of SimCode: time 6.61e-07/0.06288, allocations: 4 kB / 359.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.08812, allocations: 12.46 MB / 371.8 MB, free: 15.51 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.191/7.28, allocations: 4.062 kB / 371.8 MB, free: 15.51 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_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_SuperSampled.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_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.164859308861196]