Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001354/0.001354, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001473/0.001473, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 67.88 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3116, allocations: 50.54 MB / 408.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003951/0.3156, allocations: 2.333 MB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.3172, allocations: 0.8027 MB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001382/0.3174, allocations: 7.938 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003175/0.3177, allocations: 51.58 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.318, allocations: 59.55 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000514/0.3185, allocations: 159.7 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004413/0.3189, allocations: 379.5 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002525/0.3192, allocations: 99.36 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003028/0.3195, allocations: 159.5 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002566/0.3198, allocations: 179.2 kB / 412.9 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.383e-05/0.3198, allocations: 32 kB / 413 MB, free: 13.28 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.234e-05/0.3199, allocations: 36 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.32, allocations: 83.8 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001514/0.3202, allocations: 151.2 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000384/0.3206, allocations: 329.8 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3206, allocations: 0 / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3206, allocations: 0 / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.3206, allocations: 0 / 413.6 MB, free: 12.7 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.001263/0.3219, allocations: 0.6159 MB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3219, allocations: 12.03 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.325e-05/0.322, allocations: 62.73 kB / 414.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.083e-05/0.3221, allocations: 44.75 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004069/0.3225, allocations: 272.4 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002045/0.3227, allocations: 138.2 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.34e-05/0.3228, allocations: 40.27 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001197/0.324, allocations: 0.5405 MB / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.324, allocations: 4 kB / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.652e-05/0.3241, allocations: 8 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3241, allocations: 8 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.3254, allocations: 0.5112 MB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.3271, allocations: 1.01 MB / 416.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.3287, allocations: 0.5024 MB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006097/0.3293, allocations: 262.8 kB / 417.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.494e-05/0.3293, allocations: 8 kB / 417.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.3294, allocations: 42.5 kB / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.823e-06/0.3294, allocations: 0 / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03899/0.3684, allocations: 5.734 MB / 423.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.3686, allocations: 141 kB / 423.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002474/0.3688, allocations: 202.6 kB / 423.7 MB, free: 2.242 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.833e-05/0.3689, allocations: 37.7 kB / 423.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.369, allocations: 145.7 kB / 423.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002133/0.3693, allocations: 198.3 kB / 424.1 MB, free: 1.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002929/0.3696, allocations: 110.7 kB / 424.2 MB, free: 1.742 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3697, allocations: 342.8 kB / 424.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001554/0.3713, allocations: 0.6187 MB / 425.1 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001657/0.373, allocations: 0.8042 MB / 425.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00292/0.3759, allocations: 1.24 MB / 427.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.134e-06/0.3759, allocations: 7.938 kB / 427.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003408/0.3793, allocations: 1.398 MB / 428.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.3794, allocations: 8 kB / 428.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.3794, allocations: 8 kB / 428.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.6e-05/0.3794, allocations: 8 kB / 428.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001407/0.3808, allocations: 212.1 kB / 428.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.244e-05/0.3809, allocations: 11.94 kB / 428.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009756/0.3819, allocations: 103.8 kB / 428.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.041e-05/0.3819, allocations: 27.98 kB / 429 MB, free: 12.8 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.0003708/0.3823, allocations: 185.5 kB / 429.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003396/0.3827, allocations: 157.4 kB / 429.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001731/0.3828, allocations: 59.31 kB / 429.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.401e-05/0.3829, allocations: 8 kB / 429.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.3829, allocations: 0 / 429.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.3829, allocations: 7.984 kB / 429.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004871/0.3878, allocations: 2.168 MB / 431.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/0.3878, allocations: 12 kB / 431.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007441/0.3886, allocations: 187.8 kB / 431.7 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.821e-05/0.3886, allocations: 12 kB / 431.7 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.506e-05/0.3887, allocations: 31.98 kB / 431.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.909e-05/0.3887, allocations: 15.94 kB / 431.8 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.349e-05/0.3887, allocations: 15.94 kB / 431.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003473/0.3922, allocations: 1.553 MB / 433.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002397/0.3924, allocations: 160.8 kB / 433.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.32e-05/0.3925, allocations: 28.22 kB / 433.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005658/0.3931, allocations: 75.98 kB / 433.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002269/0.3933, allocations: 103.6 kB / 433.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.876e-05/0.3934, allocations: 39.92 kB / 433.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.3936, allocations: 140.3 kB / 433.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3936, allocations: 0 / 433.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000785/0.3944, allocations: 124 kB / 434 MB, free: 7.367 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: 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.003576/0.3979, allocations: 2.125 MB / 436.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002995/0.401, allocations: 1.139 MB / 437.3 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/0.401, allocations: 9.312 kB / 437.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000968/0.402, allocations: 337.8 kB / 437.6 MB, free: 3.602 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009603/0.4029, allocations: 145.8 kB / 437.8 MB, free: 3.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.4161, allocations: 6.772 MB / 444.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006111/0.4168, allocations: 0.8128 MB / 445.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005147/0.4173, allocations: 95.3 kB / 445.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003892/0.4177, allocations: 119.4 kB / 445.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4177, allocations: 0 / 445.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03647/0.4542, allocations: 11.22 MB / 456.8 MB, free: 36 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.874/9.328, allocations: 16 kB / 456.8 MB, free: 20 kB / 366.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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.0016 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable load.phi in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable load.phi from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi