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.002064/0.002064, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.002205/0.002205, allocations: 214.4 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.518/1.518, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001651/0.001651, allocations: 51.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2885, allocations: 53.37 MB / 431.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004431/0.293, allocations: 2.358 MB / 433.5 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001727/0.2947, allocations: 0.8144 MB / 434.3 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001983/0.2949, allocations: 11.88 kB / 434.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003215/0.2952, allocations: 51.62 kB / 434.4 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002177/0.2954, allocations: 63.5 kB / 434.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005436/0.296, allocations: 167.7 kB / 434.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004518/0.2964, allocations: 379.6 kB / 435 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001889/0.2966, allocations: 63.81 kB / 435 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.297, allocations: 171.5 kB / 435.2 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.2972, allocations: 187.2 kB / 435.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.377e-05/0.2973, allocations: 32 kB / 435.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.146e-05/0.2973, allocations: 32 kB / 435.4 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2975, allocations: 99.7 kB / 435.5 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001619/0.2976, allocations: 135.3 kB / 435.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.2981, allocations: 331 kB / 436 MB, free: 1.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.2981, allocations: 4 kB / 436 MB, free: 1.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2981, allocations: 4 kB / 436 MB, free: 1.949 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2981, allocations: 0 / 436 MB, free: 1.949 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.001248/0.2993, allocations: 0.5366 MB / 436.5 MB, free: 1.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.2994, allocations: 12.03 kB / 436.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.153e-05/0.2995, allocations: 70.73 kB / 436.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.273e-05/0.2995, allocations: 36.75 kB / 436.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/0.3, allocations: 220.1 kB / 436.9 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003448/0.3003, allocations: 343.9 kB / 437.2 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.786e-05/0.3004, allocations: 32.33 kB / 437.2 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.3016, allocations: 0.5462 MB / 437.8 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.224e-05/0.3016, allocations: 3.984 kB / 437.8 MB, free: 8 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.201e-05/0.3017, allocations: 12.08 kB / 437.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.3017, allocations: 8 kB / 437.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.3031, allocations: 0.5035 MB / 438.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.3047, allocations: 0.9566 MB / 439.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.3064, allocations: 492.2 kB / 439.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006267/0.307, allocations: 239.3 kB / 440 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.345e-05/0.3071, allocations: 8 kB / 440 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/0.3071, allocations: 46.48 kB / 440 MB, free: 13.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.864e-06/0.3071, allocations: 0 / 440 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03827/0.3454, allocations: 5.716 MB / 445.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001482/0.3455, allocations: 149.3 kB / 445.9 MB, free: 7.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002648/0.3458, allocations: 192 kB / 446.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001125/0.3459, allocations: 37.7 kB / 446.1 MB, free: 7.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001154/0.346, allocations: 141.8 kB / 446.3 MB, free: 7.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.3463, allocations: 202.2 kB / 446.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002945/0.3466, allocations: 114.6 kB / 446.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.3467, allocations: 346.8 kB / 446.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/0.3484, allocations: 0.6149 MB / 447.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001802/0.3502, allocations: 0.7924 MB / 448.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003167/0.3533, allocations: 1.255 MB / 449.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.3534, allocations: 3.938 kB / 449.6 MB, free: 3.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003692/0.3571, allocations: 1.394 MB / 451 MB, free: 2.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/0.3571, allocations: 11.98 kB / 451 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.3571, allocations: 4 kB / 451 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.092e-05/0.3571, allocations: 8 kB / 451 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001414/0.3585, allocations: 211.7 kB / 451.2 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/0.3586, allocations: 15.94 kB / 451.2 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009692/0.3595, allocations: 107.8 kB / 451.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.543e-05/0.3596, allocations: 28 kB / 451.3 MB, free: 2.086 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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0003534/0.36, allocations: 185.5 kB / 451.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003301/0.3603, allocations: 153.4 kB / 451.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001894/0.3605, allocations: 59.31 kB / 451.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.779e-06/0.3605, allocations: 8 kB / 451.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.3605, allocations: 8 kB / 451.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.3605, allocations: 7.922 kB / 451.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004977/0.3655, allocations: 2.135 MB / 453.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.3655, allocations: 12 kB / 453.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007883/0.3663, allocations: 183.7 kB / 454.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-05/0.3663, allocations: 12.5 kB / 454.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.3664, allocations: 28 kB / 454.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.892e-05/0.3664, allocations: 19.94 kB / 454.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.551e-05/0.3664, allocations: 19.92 kB / 454.2 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00333/0.3697, allocations: 1.55 MB / 455.7 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002092/0.37, allocations: 87.7 kB / 455.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.238e-05/0.37, allocations: 35.97 kB / 455.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005799/0.3706, allocations: 75.91 kB / 455.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.3708, allocations: 99.64 kB / 456 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.423e-05/0.3709, allocations: 35.94 kB / 456 MB, free: 13.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001464/0.371, allocations: 143.5 kB / 456.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.371, allocations: 8 kB / 456.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006763/0.3717, allocations: 120 kB / 456.3 MB, free: 12.78 MB / 366.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003598/0.3753, allocations: 2.117 MB / 458.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.3782, allocations: 1.026 MB / 459.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/0.3782, allocations: 4 kB / 459.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009796/0.3792, allocations: 330.4 kB / 459.8 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.3802, allocations: 135.3 kB / 459.9 MB, free: 9.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/0.394, allocations: 6.784 MB / 466.7 MB, free: 1.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/0.3945, allocations: 0.8129 MB / 467.5 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005668/0.3951, allocations: 99.3 kB / 467.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004165/0.3955, allocations: 115.4 kB / 467.7 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3955, allocations: 3.938 kB / 467.7 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04743/0.443, allocations: 11.95 MB / 479.7 MB, free: 4.867 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.33, allocations: 14.66 kB / 479.7 MB, free: 4.859 MB / 382.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/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: 15.121130292998714]