Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.0008248/0.0008248, allocations: 76.08 kB / 20.67 MB, free: 3.895 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.0008538/0.0008538, allocations: 153.1 kB / 23.93 MB, free: 0.6328 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.9684/0.9684, allocations: 173.4 MB / 200.4 MB, free: 9.449 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.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.333e-06/1.333e-06, allocations: 0 / 318.4 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.622e-05/1.755e-05, allocations: 10.22 kB / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002416/0.002433, allocations: 2.225 MB / 320.6 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.003503, allocations: 0.7325 MB / 321.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.003647, allocations: 7.938 kB / 321.4 MB, free: 3.398 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002871/0.003934, allocations: 59.5 kB / 321.4 MB, free: 3.34 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.004132, allocations: 59.5 kB / 321.5 MB, free: 3.281 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004534/0.004585, allocations: 179.5 kB / 321.7 MB, free: 3.105 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003854/0.004971, allocations: 383.5 kB / 322 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002074/0.005178, allocations: 67.84 kB / 322.1 MB, free: 2.66 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.005494, allocations: 219.5 kB / 322.3 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002026/0.005697, allocations: 143.6 kB / 322.5 MB, free: 2.305 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.397e-05/0.005751, allocations: 36 kB / 322.5 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.38e-05/0.005785, allocations: 36 kB / 322.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.239e-05/0.005877, allocations: 99.64 kB / 322.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.355e-05/0.005971, allocations: 103.8 kB / 322.7 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003866/0.006357, allocations: 354.8 kB / 323.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.00636, allocations: 4 kB / 323.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.006361, allocations: 0 / 323.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.006368, allocations: 0 / 323.1 MB, free: 1.684 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.0008719/0.007239, allocations: 0.5437 MB / 323.6 MB, free: 1.113 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.007287, allocations: 8.922 kB / 323.6 MB, free: 1.105 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.072e-05/0.007358, allocations: 70.72 kB / 323.7 MB, free: 1.027 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.029e-05/0.007418, allocations: 36.75 kB / 323.7 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002918/0.00771, allocations: 211.6 kB / 323.9 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002131/0.007923, allocations: 347.9 kB / 324.3 MB, free: 364 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.636e-05/0.007969, allocations: 28.38 kB / 324.3 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008353/0.008804, allocations: 0.5653 MB / 324.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.008823, allocations: 4 kB / 324.9 MB, free: 15.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.7e-05/0.00885, allocations: 15.94 kB / 324.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.008859, allocations: 8 kB / 324.9 MB, free: 15.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008545/0.009714, allocations: 0.5229 MB / 325.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.0108, allocations: 0.8676 MB / 326.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008719/0.01167, allocations: 466.6 kB / 326.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003625/0.01203, allocations: 251.5 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.557e-05/0.01207, allocations: 7.984 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.01209, allocations: 38.56 kB / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.663e-06/0.01209, allocations: 0 / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01875/0.03084, allocations: 5.738 MB / 332.8 MB, free: 7.695 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.371e-05/0.03092, allocations: 153 kB / 332.9 MB, free: 7.516 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001561/0.03108, allocations: 198.7 kB / 333.1 MB, free: 7.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.524e-05/0.03114, allocations: 37.7 kB / 333.2 MB, free: 7.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.03127, allocations: 153.7 kB / 333.3 MB, free: 7.117 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.03139, allocations: 186.3 kB / 333.5 MB, free: 6.934 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.03157, allocations: 98.28 kB / 333.6 MB, free: 6.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.839e-05/0.03165, allocations: 338.8 kB / 333.9 MB, free: 6.492 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008941/0.03254, allocations: 0.6064 MB / 334.5 MB, free: 5.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.03359, allocations: 0.6937 MB / 335.2 MB, free: 5.164 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001643/0.03523, allocations: 1.115 MB / 336.3 MB, free: 4.023 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.03523, allocations: 0 / 336.3 MB, free: 4.023 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001894/0.03713, allocations: 1.302 MB / 337.6 MB, free: 2.715 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.03715, allocations: 8 kB / 337.6 MB, free: 2.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.03715, allocations: 0 / 337.6 MB, free: 2.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.03717, allocations: 8 kB / 337.7 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005839/0.03775, allocations: 179.7 kB / 337.8 MB, free: 2.523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.03776, allocations: 4 kB / 337.8 MB, free: 2.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.03815, allocations: 91.86 kB / 337.9 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.738e-05/0.0382, allocations: 27.98 kB / 337.9 MB, free: 2.402 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.0001937/0.03839, allocations: 165.7 kB / 338.1 MB, free: 2.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.03857, allocations: 153.4 kB / 338.3 MB, free: 2.074 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.674e-05/0.03866, allocations: 63.3 kB / 338.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.03866, allocations: 8 kB / 338.3 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.03867, allocations: 4 kB / 338.3 MB, free: 2 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.03867, allocations: 11.92 kB / 338.3 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002703/0.04138, allocations: 1.968 MB / 340.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.04138, allocations: 12 kB / 340.3 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000363/0.04175, allocations: 179.7 kB / 340.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.04176, allocations: 12.5 kB / 340.5 MB, free: 15.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.358e-05/0.04179, allocations: 39.92 kB / 340.6 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.0418, allocations: 19.94 kB / 340.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.401e-06/0.0418, allocations: 11.94 kB / 340.6 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001784/0.04359, allocations: 1.562 MB / 342.1 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001204/0.04371, allocations: 91.67 kB / 342.2 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.125e-05/0.04375, allocations: 31.88 kB / 342.3 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/0.04404, allocations: 83.97 kB / 342.3 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/0.04417, allocations: 95.64 kB / 342.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.739e-05/0.0442, allocations: 32 kB / 342.5 MB, free: 13.52 MB / 314.7 MB Notification: Performance of sorting global known variables: time 7.873e-05/0.04428, allocations: 148.3 kB / 342.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04428, allocations: 0 / 342.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003688/0.04465, allocations: 116 kB / 342.7 MB, free: 13.27 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.001977/0.04663, allocations: 2.13 MB / 344.9 MB, free: 10.97 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.04818, allocations: 1.003 MB / 345.9 MB, free: 9.973 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.04819, allocations: 0 / 345.9 MB, free: 9.973 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005559/0.04874, allocations: 338 kB / 346.2 MB, free: 9.645 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.04933, allocations: 128.2 kB / 346.3 MB, free: 9.52 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007683/0.05701, allocations: 6.411 MB / 352.7 MB, free: 2.711 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001664/0.05718, allocations: 207.3 kB / 352.9 MB, free: 2.492 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002941/0.05747, allocations: 95.17 kB / 353 MB, free: 2.395 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002723/0.05774, allocations: 108.5 kB / 353.1 MB, free: 2.289 MB / 314.7 MB Notification: Performance of SimCode: time 1.703e-06/0.05775, allocations: 0 / 353.1 MB, free: 2.289 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02263/0.08037, allocations: 12.47 MB / 365.6 MB, free: 6.008 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.066/7.146, allocations: 11.09 kB / 365.6 MB, free: 6 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable load.phi from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.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.104778393171728]