Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.0008081/0.0008081, 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.001385/0.001385, 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.9126/0.9126, allocations: 177.1 MB / 204.3 MB, free: 5.703 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.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.91e-05/2.064e-05, allocations: 2.281 kB / 324.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002791/0.002811, allocations: 2.082 MB / 326.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.003989, allocations: 0.6742 MB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.004123, allocations: 7.938 kB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003033/0.004426, allocations: 39.7 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.004573, allocations: 51.56 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003717/0.004945, allocations: 131.7 kB / 327.5 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.005259, allocations: 343.1 kB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001509/0.00541, allocations: 53.11 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003631/0.005773, allocations: 203.5 kB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.005939, allocations: 127.7 kB / 328.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.768e-05/0.005977, allocations: 32 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.474e-05/0.006011, allocations: 32 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.075e-05/0.006102, allocations: 91.7 kB / 328.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.826e-05/0.00618, allocations: 87.78 kB / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003408/0.006521, allocations: 311.1 kB / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.006526, allocations: 0 / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.006528, allocations: 0 / 328.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.006536, allocations: 0 / 328.8 MB, free: 11.68 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001039/0.007575, allocations: 0.5128 MB / 329.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.882e-05/0.007634, allocations: 8.031 kB / 329.3 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.598e-05/0.00771, allocations: 66.73 kB / 329.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.924e-05/0.007779, allocations: 28.8 kB / 329.4 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004697/0.008249, allocations: 190 kB / 329.6 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002662/0.008515, allocations: 347.8 kB / 329.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.008579, allocations: 24.38 kB / 329.9 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006213/0.0092, allocations: 382.7 kB / 330.3 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.009217, allocations: 3.953 kB / 330.3 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.372e-05/0.009241, allocations: 8 kB / 330.3 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.009249, allocations: 8 kB / 330.3 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008319/0.01008, allocations: 0.4899 MB / 330.8 MB, free: 9.492 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001337/0.01142, allocations: 0.9063 MB / 331.7 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006909/0.01211, allocations: 298.4 kB / 332 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/0.01242, allocations: 168.7 kB / 332.2 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.262e-05/0.01245, allocations: 0 / 332.2 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.582e-05/0.01248, allocations: 38.56 kB / 332.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 4.037e-05/0.01252, allocations: 0 / 332.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.01483/0.02735, allocations: 5.677 MB / 337.9 MB, free: 2.281 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.0274, allocations: 71.77 kB / 338 MB, free: 2.199 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002223/0.02762, allocations: 210.9 kB / 338.2 MB, free: 1.984 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.02766, allocations: 33.7 kB / 338.2 MB, free: 1.945 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.02776, allocations: 149 kB / 338.4 MB, free: 1.793 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000127/0.02788, allocations: 182.4 kB / 338.5 MB, free: 1.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.02804, allocations: 94.28 kB / 338.6 MB, free: 1.516 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.02815, allocations: 338.8 kB / 339 MB, free: 1.176 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007756/0.02893, allocations: 473 kB / 339.4 MB, free: 0.707 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007872/0.02971, allocations: 0.5264 MB / 339.9 MB, free: 172 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.03108, allocations: 0.8064 MB / 340.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.03109, allocations: 0 / 340.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001631/0.03272, allocations: 1.005 MB / 341.8 MB, free: 14.33 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.03274, allocations: 4 kB / 341.8 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.03275, allocations: 4 kB / 341.8 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.03277, allocations: 0 / 341.8 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004975/0.03327, allocations: 171.7 kB / 341.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.03328, allocations: 11.92 kB / 341.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.03362, allocations: 87.92 kB / 342 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.308e-05/0.03365, allocations: 19.98 kB / 342 MB, free: 14.04 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001673/0.03382, allocations: 149.8 kB / 342.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.213e-05/0.03387, allocations: 31.81 kB / 342.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.538e-05/0.03394, allocations: 59.23 kB / 342.3 MB, free: 13.8 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.03394, allocations: 4 kB / 342.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.03395, allocations: 3.938 kB / 342.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.03395, allocations: 7.984 kB / 342.3 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002463/0.03642, allocations: 1.743 MB / 344 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.03642, allocations: 8 kB / 344 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003276/0.03675, allocations: 152.6 kB / 344.2 MB, free: 11.73 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.03676, allocations: 12 kB / 344.2 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.03679, allocations: 16 kB / 344.2 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.297e-06/0.0368, allocations: 19.92 kB / 344.2 MB, free: 11.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.03681, allocations: 15.88 kB / 344.3 MB, free: 11.66 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/0.03847, allocations: 1.22 MB / 345.5 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.0386, allocations: 75.84 kB / 345.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.947e-05/0.03864, allocations: 20 kB / 345.6 MB, free: 10.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.03892, allocations: 75.84 kB / 345.6 MB, free: 10.14 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.03906, allocations: 87.72 kB / 345.7 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.03909, allocations: 27.92 kB / 345.8 MB, free: 10.03 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001146/0.0392, allocations: 152.3 kB / 345.9 MB, free: 9.883 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0392, allocations: 0 / 345.9 MB, free: 9.883 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003524/0.03956, allocations: 96 kB / 346 MB, free: 9.789 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.001859/0.04141, allocations: 1.804 MB / 347.8 MB, free: 7.855 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.0428, allocations: 0.7984 MB / 348.6 MB, free: 7.055 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.04281, allocations: 0 / 348.6 MB, free: 7.055 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005685/0.04338, allocations: 325.7 kB / 348.9 MB, free: 6.738 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004308/0.04381, allocations: 63.66 kB / 349 MB, free: 6.68 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006734/0.05054, allocations: 5.222 MB / 354.2 MB, free: 1.141 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001653/0.05071, allocations: 180.2 kB / 354.4 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003159/0.05102, allocations: 78.88 kB / 354.5 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002281/0.05125, allocations: 96.47 kB / 354.6 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of SimCode: time 1.794e-06/0.05125, allocations: 0 / 354.6 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/0.07913, allocations: 9.521 MB / 364.1 MB, free: 7.445 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.944/7.023, allocations: 0 / 364.1 MB, free: 7.445 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000798722 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous_res.csv. Warning: Get data of variable load.phi from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.850247057154775]