Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.000848/0.000848, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0007976/0.0007976, allocations: 170 kB / 23.95 MB, free: 0.6133 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.9317/0.9317, allocations: 177.1 MB / 204.3 MB, free: 5.73 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.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.275e-06/2.275e-06, allocations: 0 / 324.5 MB, free: 15.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.513e-05/2.74e-05, allocations: 6.281 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003296/0.003324, allocations: 2.285 MB / 326.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.004378, allocations: 0.7986 MB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.004502, allocations: 8 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002566/0.004758, allocations: 51.56 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001728/0.004931, allocations: 71.38 kB / 327.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003749/0.005306, allocations: 183.5 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003132/0.005619, allocations: 391.4 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.005789, allocations: 72.34 kB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/0.006112, allocations: 227.6 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001673/0.006279, allocations: 143.5 kB / 328.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.192e-05/0.006321, allocations: 32 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.26e-05/0.006354, allocations: 36 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.028e-05/0.006444, allocations: 103.7 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.352e-05/0.006527, allocations: 107.7 kB / 329 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.00684, allocations: 362.9 kB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.006844, allocations: 3.938 kB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.006846, allocations: 0 / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.006851, allocations: 0 / 329.4 MB, free: 11.11 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0007945/0.007645, allocations: 0.5589 MB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.007681, allocations: 8.031 kB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.58e-05/0.007736, allocations: 70.72 kB / 330 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.463e-05/0.007791, allocations: 44.7 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.008088, allocations: 209.8 kB / 330.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/0.008287, allocations: 355.9 kB / 330.6 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.456e-05/0.008332, allocations: 28.38 kB / 330.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007758/0.009108, allocations: 0.5786 MB / 331.2 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.009123, allocations: 192 / 331.2 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.00915, allocations: 19.92 kB / 331.2 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.009157, allocations: 8 kB / 331.2 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007724/0.00993, allocations: 0.5074 MB / 331.8 MB, free: 8.578 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009198/0.01085, allocations: 0.8796 MB / 332.6 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008314/0.01168, allocations: 474.5 kB / 333.1 MB, free: 7.133 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003606/0.01204, allocations: 246 kB / 333.3 MB, free: 6.883 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.945e-05/0.01207, allocations: 11.94 kB / 333.3 MB, free: 6.871 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.01209, allocations: 46.48 kB / 333.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.492e-06/0.0121, allocations: 0 / 333.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01827/0.03037, allocations: 5.739 MB / 339.1 MB, free: 1.066 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001051/0.03047, allocations: 156.9 kB / 339.3 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002005/0.03067, allocations: 212.3 kB / 339.5 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.053e-05/0.03073, allocations: 33.7 kB / 339.5 MB, free: 0.625 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.511e-05/0.03081, allocations: 145.8 kB / 339.7 MB, free: 492 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.03094, allocations: 194.2 kB / 339.9 MB, free: 296 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000177/0.03112, allocations: 98.33 kB / 340 MB, free: 192 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.03123, allocations: 342.8 kB / 340.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008888/0.03211, allocations: 0.6064 MB / 340.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009271/0.03304, allocations: 0.6937 MB / 341.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.0347, allocations: 1.118 MB / 342.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.125e-06/0.0347, allocations: 0 / 342.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0019/0.0366, allocations: 1.294 MB / 344 MB, free: 12.07 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.03662, allocations: 15.97 kB / 344 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.03663, allocations: 0 / 344 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.267e-05/0.03665, allocations: 8 kB / 344 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/0.03724, allocations: 171.8 kB / 344.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.03725, allocations: 11.92 kB / 344.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004024/0.03765, allocations: 87.89 kB / 344.3 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.437e-05/0.0377, allocations: 27.92 kB / 344.3 MB, free: 11.75 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.0002135/0.03791, allocations: 165.7 kB / 344.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001949/0.03811, allocations: 157.9 kB / 344.6 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.632e-05/0.0382, allocations: 63.3 kB / 344.7 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.03821, allocations: 11.98 kB / 344.7 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.03822, allocations: 8 kB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.03822, allocations: 3.984 kB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.04096, allocations: 1.968 MB / 346.7 MB, free: 9.184 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.965e-06/0.04097, allocations: 12 kB / 346.7 MB, free: 9.172 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003735/0.04134, allocations: 175.8 kB / 346.9 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.001e-05/0.04135, allocations: 12 kB / 346.9 MB, free: 8.988 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.07e-05/0.04138, allocations: 27.98 kB / 346.9 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.195e-05/0.04139, allocations: 27.81 kB / 346.9 MB, free: 8.934 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.0414, allocations: 16.12 kB / 346.9 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.04323, allocations: 1.55 MB / 348.5 MB, free: 7.215 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.04337, allocations: 95.62 kB / 348.6 MB, free: 7.121 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.197e-05/0.04341, allocations: 24 kB / 348.6 MB, free: 7.098 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.04372, allocations: 83.91 kB / 348.7 MB, free: 7.016 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.04387, allocations: 99.64 kB / 348.8 MB, free: 6.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.04389, allocations: 32 kB / 348.8 MB, free: 6.887 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.401e-05/0.04399, allocations: 153.1 kB / 349 MB, free: 6.738 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04399, allocations: 0 / 349 MB, free: 6.738 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000403/0.04439, allocations: 119.9 kB / 349.1 MB, free: 6.621 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.002057/0.04645, allocations: 2.122 MB / 351.2 MB, free: 4.344 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.04806, allocations: 0.9951 MB / 352.2 MB, free: 3.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.04806, allocations: 8.125 kB / 352.2 MB, free: 3.332 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005765/0.04864, allocations: 345.8 kB / 352.6 MB, free: 2.996 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006058/0.04925, allocations: 128.5 kB / 352.7 MB, free: 2.871 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007512/0.05676, allocations: 6.408 MB / 359.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/0.05693, allocations: 211.3 kB / 359.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003217/0.05725, allocations: 91.17 kB / 359.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.05751, allocations: 116.5 kB / 359.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.05752, allocations: 0 / 359.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.08212, allocations: 12.54 MB / 372 MB, free: 15.28 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.045/7.127, allocations: 9.5 kB / 372 MB, free: 15.27 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.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.032701849006116]