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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 108.3 kB / 16.92 MB, free: 5.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00121/0.001211, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 47.59 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1337, allocations: 49.45 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004512/0.1383, allocations: 2.3 MB / 352.5 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00142/0.1398, allocations: 0.7716 MB / 353.2 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001479/0.1399, allocations: 7.938 kB / 353.2 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003602/0.1403, allocations: 55.58 kB / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001898/0.1405, allocations: 55.56 kB / 353.3 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004588/0.141, allocations: 165.8 kB / 353.5 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004203/0.1414, allocations: 371.6 kB / 353.9 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002086/0.1416, allocations: 99.23 kB / 354 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002512/0.1419, allocations: 163.4 kB / 354.1 MB, free: 344 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003504/0.1423, allocations: 175.3 kB / 354.3 MB, free: 168 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.408e-05/0.1424, allocations: 36 kB / 354.3 MB, free: 132 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.38e-05/0.1425, allocations: 32 kB / 354.4 MB, free: 100 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001583/0.1426, allocations: 87.78 kB / 354.5 MB, free: 12 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001972/0.1428, allocations: 147.4 kB / 354.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000484/0.1433, allocations: 319 kB / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1433, allocations: 0 / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1434, allocations: 0 / 354.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.1434, allocations: 0 / 354.9 MB, free: 15.55 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.00145/0.1448, allocations: 0.6123 MB / 355.5 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.1449, allocations: 12.03 kB / 355.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.943e-05/0.145, allocations: 70.73 kB / 355.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.6e-05/0.1451, allocations: 36.56 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.1454, allocations: 268.3 kB / 355.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.1457, allocations: 138.2 kB / 356 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.997e-05/0.1457, allocations: 24.38 kB / 356.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001184/0.1469, allocations: 0.5603 MB / 356.6 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.147, allocations: 7.938 kB / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.958e-05/0.147, allocations: 16 kB / 356.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.147, allocations: 11.94 kB / 356.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.1484, allocations: 0.4996 MB / 357.2 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/0.15, allocations: 1.002 MB / 358.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001645/0.1517, allocations: 0.5141 MB / 358.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006172/0.1523, allocations: 259.5 kB / 358.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.004e-05/0.1524, allocations: 11.98 kB / 358.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.1524, allocations: 38.56 kB / 359 MB, free: 11.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.774e-06/0.1524, allocations: 0 / 359 MB, free: 11.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.0432/0.1956, allocations: 5.703 MB / 364.7 MB, free: 5.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.1958, allocations: 152.9 kB / 364.8 MB, free: 5.328 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003162/0.1962, allocations: 199.1 kB / 365 MB, free: 5.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.1963, allocations: 37.7 kB / 365.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.1965, allocations: 141.5 kB / 365.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003071/0.1968, allocations: 189.3 kB / 365.4 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004926/0.1973, allocations: 110.6 kB / 365.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001976/0.1975, allocations: 342.8 kB / 365.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002398/0.1999, allocations: 0.6188 MB / 366.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002628/0.2025, allocations: 0.7963 MB / 367.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00484/0.2074, allocations: 1.247 MB / 368.5 MB, free: 1.477 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.408e-05/0.2074, allocations: 7.938 kB / 368.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.005754/0.2132, allocations: 1.39 MB / 369.9 MB, free: 72 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.84e-05/0.2133, allocations: 8 kB / 369.9 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.165e-05/0.2133, allocations: 11.98 kB / 369.9 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.165e-05/0.2134, allocations: 8 kB / 369.9 MB, free: 44 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2717/0.485, allocations: 205.2 kB / 370.1 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-05/0.4851, allocations: 15.22 kB / 370.1 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.4863, allocations: 104.9 kB / 370.2 MB, free: 26.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.4865, allocations: 26 kB / 370.3 MB, free: 26.39 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.0003934/0.4869, allocations: 184.9 kB / 370.4 MB, free: 26.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004286/0.4873, allocations: 149.4 kB / 370.6 MB, free: 26.24 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002035/0.4875, allocations: 62.92 kB / 370.6 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.329e-05/0.4875, allocations: 8.406 kB / 370.6 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.4876, allocations: 1.375 kB / 370.6 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.4876, allocations: 6.094 kB / 370.7 MB, free: 26.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005867/0.4935, allocations: 2.169 MB / 372.8 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.689e-05/0.4935, allocations: 10.06 kB / 372.8 MB, free: 25.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008916/0.4944, allocations: 183.2 kB / 373 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.345e-05/0.4945, allocations: 14.03 kB / 373 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.538e-05/0.4945, allocations: 28.31 kB / 373.1 MB, free: 25.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.376e-05/0.4946, allocations: 19.14 kB / 373.1 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.574e-05/0.4946, allocations: 14.53 kB / 373.1 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003548/0.4982, allocations: 1.567 MB / 374.7 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002543/0.4984, allocations: 160.2 kB / 374.8 MB, free: 24.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.677e-05/0.4985, allocations: 29.97 kB / 374.8 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006242/0.4991, allocations: 78.19 kB / 374.9 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/0.4994, allocations: 93.95 kB / 375 MB, free: 24.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.153e-05/0.4994, allocations: 30.91 kB / 375 MB, free: 24.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000137/0.4996, allocations: 143.4 kB / 375.2 MB, free: 24.28 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4996, allocations: 0 / 375.2 MB, free: 24.28 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007848/0.5004, allocations: 126 kB / 375.3 MB, free: 24.26 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.003827/0.5042, allocations: 2.126 MB / 377.4 MB, free: 22.77 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003491/0.5077, allocations: 1.15 MB / 378.6 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.879e-05/0.5078, allocations: 1.188 kB / 378.6 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.5089, allocations: 348.6 kB / 378.9 MB, free: 22.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.5099, allocations: 135.6 kB / 379.1 MB, free: 22.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/0.5239, allocations: 6.775 MB / 385.8 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.5244, allocations: 0.8124 MB / 386.6 MB, free: 17.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0007161/0.5251, allocations: 90.89 kB / 386.7 MB, free: 17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004224/0.5255, allocations: 114.7 kB / 386.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5256, allocations: 4 kB / 386.8 MB, free: 16.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03611/0.5617, allocations: 11.17 MB / 398 MB, free: 9.559 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.228/8.79, allocations: 7.781 kB / 398 MB, free: 9.551 MB / 302.1 MB (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.0016 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) 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) "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! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.w,speed.flange.phi