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.001464/0.001464, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 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.001678/0.001678, allocations: 194.4 kB / 23.71 MB, free: 4.406 MB / 14.72 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 1.43/1.43, allocations: 225.7 MB / 252.5 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002731/0.002731, allocations: 51.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.274, allocations: 52.18 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003657/0.2776, allocations: 2.22 MB / 424.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.279, allocations: 0.7366 MB / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.2791, allocations: 7.938 kB / 425.5 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002538/0.2794, allocations: 51.56 kB / 425.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.2796, allocations: 63.55 kB / 425.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004634/0.28, allocations: 171.6 kB / 425.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004108/0.2804, allocations: 379.5 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001648/0.2806, allocations: 67.61 kB / 426.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002262/0.2808, allocations: 155.5 kB / 426.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.2811, allocations: 163.3 kB / 426.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.188e-05/0.2811, allocations: 36 kB / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.772e-05/0.2812, allocations: 32 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.2813, allocations: 103.6 kB / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.2814, allocations: 123.4 kB / 426.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003816/0.2818, allocations: 336.5 kB / 427.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.845e-06/0.2818, allocations: 0 / 427.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2818, allocations: 0 / 427.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.2818, allocations: 0 / 427.2 MB, free: 9.758 MB / 334.1 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.001185/0.283, allocations: 0.5522 MB / 427.7 MB, free: 9.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.283, allocations: 8.031 kB / 427.7 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.506e-05/0.2831, allocations: 70.72 kB / 427.8 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.163e-05/0.2832, allocations: 40.75 kB / 427.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003916/0.2836, allocations: 214 kB / 428 MB, free: 8.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003158/0.2839, allocations: 347.9 kB / 428.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.278e-05/0.284, allocations: 28.38 kB / 428.4 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.2851, allocations: 0.5503 MB / 429 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.2852, allocations: 11.94 kB / 429 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.363e-05/0.2852, allocations: 11.98 kB / 429 MB, free: 7.785 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.2852, allocations: 11.94 kB / 429 MB, free: 7.773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.2867, allocations: 0.5113 MB / 429.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.2882, allocations: 0.8829 MB / 430.4 MB, free: 6.312 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001517/0.2897, allocations: 470.5 kB / 430.9 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006517/0.2903, allocations: 243.4 kB / 431.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.165e-05/0.2904, allocations: 8 kB / 431.1 MB, free: 5.559 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.2904, allocations: 42.5 kB / 431.1 MB, free: 5.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.064e-06/0.2904, allocations: 0 / 431.1 MB, free: 5.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.03745/0.3279, allocations: 5.744 MB / 436.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001399/0.328, allocations: 148.9 kB / 437 MB, free: 15.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/0.3283, allocations: 202.7 kB / 437.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.256e-05/0.3284, allocations: 41.7 kB / 437.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.3285, allocations: 141.7 kB / 437.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002052/0.3287, allocations: 198.3 kB / 437.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002808/0.329, allocations: 118.6 kB / 437.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.3292, allocations: 346.8 kB / 438.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/0.3308, allocations: 0.6227 MB / 438.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.3326, allocations: 0.8003 MB / 439.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003214/0.3358, allocations: 1.26 MB / 440.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.3358, allocations: 4 kB / 440.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003676/0.3395, allocations: 1.407 MB / 442.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.3395, allocations: 8 kB / 442.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.3395, allocations: 8 kB / 442.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.847e-05/0.3396, allocations: 11.94 kB / 442.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/0.3409, allocations: 203.7 kB / 442.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.96e-05/0.3409, allocations: 15.97 kB / 442.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009492/0.3418, allocations: 107.8 kB / 442.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.913e-05/0.3419, allocations: 24 kB / 442.5 MB, free: 9.887 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (84): * Single equations (assignments): 84 * 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.0003253/0.3422, allocations: 189.9 kB / 442.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003212/0.3426, allocations: 153.4 kB / 442.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001649/0.3427, allocations: 67.3 kB / 442.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.3427, allocations: 15.94 kB / 442.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.3427, allocations: 0 / 442.9 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.3428, allocations: 3.984 kB / 442.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004888/0.3476, allocations: 1.968 MB / 444.9 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.437e-05/0.3477, allocations: 11.94 kB / 444.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007438/0.3484, allocations: 180.3 kB / 445.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.836e-05/0.3484, allocations: 19.94 kB / 445.1 MB, free: 7.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.233e-05/0.3485, allocations: 28 kB / 445.1 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-05/0.3485, allocations: 19.92 kB / 445.2 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/0.3485, allocations: 15.94 kB / 445.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003431/0.3519, allocations: 1.566 MB / 446.7 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000225/0.3522, allocations: 95.58 kB / 446.8 MB, free: 5.227 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.307e-05/0.3522, allocations: 27.98 kB / 446.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006037/0.3528, allocations: 79.98 kB / 446.9 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.353, allocations: 99.64 kB / 447 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.123e-05/0.3531, allocations: 35.92 kB / 447.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.3532, allocations: 148.8 kB / 447.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3532, allocations: 0 / 447.2 MB, free: 4.844 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006539/0.3539, allocations: 124 kB / 447.3 MB, free: 4.723 MB / 350.1 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.003726/0.3576, allocations: 2.149 MB / 449.5 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002904/0.3605, allocations: 1.041 MB / 450.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.3605, allocations: 0 / 450.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.3616, allocations: 343.2 kB / 450.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009091/0.3625, allocations: 132.2 kB / 451 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0135/0.376, allocations: 6.837 MB / 457.8 MB, free: 9.578 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002451/0.3762, allocations: 203.3 kB / 458 MB, free: 9.359 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005037/0.3767, allocations: 95.25 kB / 458.1 MB, free: 9.27 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003778/0.3771, allocations: 123.4 kB / 458.2 MB, free: 9.152 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3771, allocations: 0 / 458.2 MB, free: 9.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04379/0.4209, allocations: 12.56 MB / 470.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.86, allocations: 10.86 kB / 470.8 MB, free: 12.77 MB / 382.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/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: 14.588716552127153]