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.001248/0.001248, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 55.31 kB / 307 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.126, allocations: 50.54 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00456/0.1306, allocations: 2.328 MB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.1324, allocations: 0.8028 MB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002927/0.1327, allocations: 7.938 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003652/0.1332, allocations: 55.56 kB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.1335, allocations: 55.56 kB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007781/0.1343, allocations: 159.7 kB / 361 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005352/0.1348, allocations: 383.5 kB / 361.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.1351, allocations: 95.38 kB / 361.4 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003941/0.1355, allocations: 155.5 kB / 361.6 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003188/0.1358, allocations: 179.3 kB / 361.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.879e-05/0.1359, allocations: 32 kB / 361.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.069e-05/0.136, allocations: 32 kB / 361.8 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1361, allocations: 103.7 kB / 361.9 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002183/0.1363, allocations: 139.3 kB / 362.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004577/0.1368, allocations: 323.2 kB / 362.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.1368, allocations: 0 / 362.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1368, allocations: 0 / 362.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.1369, allocations: 0 / 362.4 MB, free: 9.188 MB / 302.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.001528/0.1384, allocations: 0.6045 MB / 363 MB, free: 8.535 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/0.1385, allocations: 12.03 kB / 363 MB, free: 8.523 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.277e-05/0.1386, allocations: 66.72 kB / 363.1 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.1387, allocations: 36.56 kB / 363.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.1391, allocations: 275.6 kB / 363.4 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002271/0.1393, allocations: 134.2 kB / 363.5 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.74e-05/0.1394, allocations: 32.38 kB / 363.5 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1407, allocations: 0.5567 MB / 364.1 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.1407, allocations: 4 kB / 364.1 MB, free: 7.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.827e-05/0.1408, allocations: 12 kB / 364.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.1408, allocations: 4 kB / 364.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.1422, allocations: 0.5073 MB / 364.6 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001637/0.1439, allocations: 1.002 MB / 365.6 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001719/0.1456, allocations: 0.4985 MB / 366.1 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00065/0.1463, allocations: 271.2 kB / 366.4 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.378e-05/0.1463, allocations: 12.12 kB / 366.4 MB, free: 4.914 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.754e-05/0.1464, allocations: 38.56 kB / 366.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.847e-06/0.1464, allocations: 0 / 366.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2679/0.4143, allocations: 5.715 MB / 372.2 MB, free: 20.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.4144, allocations: 153.1 kB / 372.3 MB, free: 20.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.4147, allocations: 195.6 kB / 372.5 MB, free: 20.53 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.505e-05/0.4148, allocations: 35.14 kB / 372.5 MB, free: 20.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.104e-05/0.4149, allocations: 142.8 kB / 372.7 MB, free: 20.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001874/0.4151, allocations: 191.5 kB / 372.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002982/0.4154, allocations: 107.7 kB / 373 MB, free: 20.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.845e-05/0.4155, allocations: 345.2 kB / 373.3 MB, free: 19.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001729/0.4172, allocations: 0.6167 MB / 373.9 MB, free: 19.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.4191, allocations: 0.7994 MB / 374.7 MB, free: 19.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00321/0.4223, allocations: 1.249 MB / 376 MB, free: 18.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.626e-05/0.4224, allocations: 7.062 kB / 376 MB, free: 18.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003873/0.4263, allocations: 1.385 MB / 377.4 MB, free: 18.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.4263, allocations: 8.453 kB / 377.4 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.4264, allocations: 5.875 kB / 377.4 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.655e-05/0.4264, allocations: 14.62 kB / 377.4 MB, free: 18.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/0.4278, allocations: 215.3 kB / 377.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.188e-05/0.4278, allocations: 8.25 kB / 377.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.4289, allocations: 99.25 kB / 377.7 MB, free: 18.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.363e-05/0.429, allocations: 34.94 kB / 377.7 MB, free: 18.09 MB / 302.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.0003506/0.4293, allocations: 185 kB / 377.9 MB, free: 17.92 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003565/0.4297, allocations: 153.4 kB / 378.1 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001567/0.4299, allocations: 63.98 kB / 378.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.4299, allocations: 8.844 kB / 378.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.027e-05/0.4299, allocations: 1.719 kB / 378.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.4299, allocations: 4.938 kB / 378.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005032/0.435, allocations: 2.176 MB / 380.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.122e-05/0.435, allocations: 10.88 kB / 380.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008068/0.4358, allocations: 182.5 kB / 380.5 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.992e-05/0.4359, allocations: 13.53 kB / 380.5 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.356e-05/0.4359, allocations: 23.97 kB / 380.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.858e-05/0.4359, allocations: 19.66 kB / 380.6 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/0.436, allocations: 16.83 kB / 380.6 MB, free: 16.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003267/0.4392, allocations: 1.563 MB / 382.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002685/0.4395, allocations: 160.9 kB / 382.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.007e-05/0.4396, allocations: 32.38 kB / 382.3 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006127/0.4403, allocations: 76.58 kB / 382.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.4405, allocations: 93.27 kB / 382.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.679e-05/0.4406, allocations: 34.23 kB / 382.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001566/0.4407, allocations: 146.8 kB / 382.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4407, allocations: 0 / 382.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007707/0.4415, allocations: 121.2 kB / 382.8 MB, free: 15.34 MB / 302.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.003673/0.4452, allocations: 2.118 MB / 384.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003419/0.4486, allocations: 1.159 MB / 386.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.807e-05/0.4487, allocations: 2.938 kB / 386.1 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.4498, allocations: 343.2 kB / 386.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.4509, allocations: 138.5 kB / 386.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01382/0.4647, allocations: 6.755 MB / 393.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.465, allocations: 0.8134 MB / 394.1 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006492/0.4657, allocations: 102.1 kB / 394.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/0.4661, allocations: 116.2 kB / 394.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4661, allocations: 0 / 394.3 MB, free: 7.859 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.4988, allocations: 11.18 MB / 405.5 MB, free: 14.46 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.347/8.846, allocations: 15.09 kB / 405.5 MB, free: 14.45 MB / 318.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