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.001382/0.001382, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001648/0.001648, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00215/0.00215, allocations: 59.91 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.3476, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003378/0.3511, allocations: 2.329 MB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001492/0.3526, allocations: 0.8027 MB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002278/0.3528, allocations: 7.938 kB / 411.9 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000324/0.3532, allocations: 55.56 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.3534, allocations: 63.55 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000488/0.3539, allocations: 159.7 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003943/0.3543, allocations: 379.5 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001889/0.3545, allocations: 95.38 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003026/0.3548, allocations: 167.5 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.3551, allocations: 175.3 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.772e-05/0.3552, allocations: 32 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.486e-05/0.3552, allocations: 32 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.3553, allocations: 99.7 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.3555, allocations: 135.3 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003543/0.3558, allocations: 329.7 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3558, allocations: 4 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3558, allocations: 0 / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.946e-06/0.3559, 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.001181/0.357, allocations: 0.6159 MB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.3571, allocations: 15.97 kB / 414.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.942e-05/0.3572, allocations: 70.72 kB / 414.3 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.52e-05/0.3573, allocations: 36.75 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.3576, allocations: 272.4 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/0.3578, allocations: 142.2 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.054e-05/0.3579, allocations: 32.31 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.359, allocations: 0.5444 MB / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.359, allocations: 0 / 415.3 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.492e-05/0.3591, allocations: 12 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.3591, allocations: 8 kB / 415.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.3604, allocations: 0.5112 MB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.3619, allocations: 1.01 MB / 416.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001562/0.3635, allocations: 0.5024 MB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006745/0.3642, allocations: 259.5 kB / 417.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.315e-05/0.3642, allocations: 11.92 kB / 417.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.732e-05/0.3643, allocations: 46.55 kB / 417.6 MB, free: 8.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.583e-06/0.3643, allocations: 0 / 417.6 MB, free: 8.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03805/0.4023, allocations: 5.718 MB / 423.4 MB, free: 2.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.4025, allocations: 149 kB / 423.5 MB, free: 2.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002701/0.4028, allocations: 194.6 kB / 423.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.836e-05/0.4029, allocations: 37.7 kB / 423.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.403, allocations: 145.7 kB / 423.9 MB, free: 2.059 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.4033, allocations: 202.3 kB / 424.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002964/0.4036, allocations: 110.7 kB / 424.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.4037, allocations: 346.7 kB / 424.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001629/0.4054, allocations: 0.6149 MB / 425.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.4071, allocations: 0.7963 MB / 425.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003007/0.4102, allocations: 1.255 MB / 427.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.531e-05/0.4102, allocations: 4.312 kB / 427.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003501/0.4137, allocations: 1.394 MB / 428.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.32e-05/0.4137, allocations: 11.98 kB / 428.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.4138, allocations: 7.984 kB / 428.6 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.111e-05/0.4138, allocations: 15.94 kB / 428.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/0.4151, allocations: 211.6 kB / 428.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.4152, allocations: 8 kB / 428.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000925/0.4161, allocations: 103.8 kB / 428.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.067e-05/0.4162, allocations: 32 kB / 429 MB, free: 12.79 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.0003477/0.4165, allocations: 185.5 kB / 429.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003036/0.4168, allocations: 149.4 kB / 429.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001744/0.417, allocations: 63.31 kB / 429.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.806e-06/0.417, allocations: 8 kB / 429.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.248e-06/0.4171, allocations: 4 kB / 429.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.4171, allocations: 3.984 kB / 429.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004652/0.4217, allocations: 2.175 MB / 431.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.4218, allocations: 8 kB / 431.5 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007179/0.4225, allocations: 179.7 kB / 431.7 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.838e-05/0.4225, allocations: 20.52 kB / 431.7 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.908e-05/0.4226, allocations: 24 kB / 431.8 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-05/0.4226, allocations: 19.94 kB / 431.8 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.105e-05/0.4226, allocations: 15.94 kB / 431.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003081/0.4257, allocations: 1.557 MB / 433.4 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.4259, allocations: 160.8 kB / 433.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.415e-05/0.426, allocations: 31.98 kB / 433.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005662/0.4265, allocations: 71.92 kB / 433.6 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001816/0.4267, allocations: 95.72 kB / 433.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.434e-05/0.4268, allocations: 31.94 kB / 433.7 MB, free: 7.633 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001231/0.4269, allocations: 148.3 kB / 433.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4269, allocations: 4 kB / 433.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006498/0.4276, allocations: 120.2 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.003375/0.431, allocations: 2.128 MB / 436.1 MB, free: 5.082 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002948/0.4339, allocations: 1.147 MB / 437.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.4339, allocations: 0 / 437.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009706/0.4349, allocations: 342.4 kB / 437.6 MB, free: 3.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008833/0.4358, allocations: 136.2 kB / 437.7 MB, free: 3.465 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01284/0.4487, allocations: 6.775 MB / 444.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004146/0.4491, allocations: 0.8167 MB / 445.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004962/0.4496, allocations: 95.31 kB / 445.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003682/0.45, allocations: 115.4 kB / 445.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.45, allocations: 0 / 445.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/0.4845, allocations: 11.21 MB / 456.8 MB, free: 40 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.789/9.274, allocations: 19.86 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.0.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