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.001359/0.001359, allocations: 112 kB / 17.06 MB, free: 5.992 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.001476/0.001476, allocations: 192 kB / 18 MB, free: 5.082 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2695, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003548/0.2731, allocations: 2.314 MB / 402.5 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.2745, allocations: 0.7754 MB / 403.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.2746, allocations: 7.938 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.2749, allocations: 47.62 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001918/0.2751, allocations: 63.48 kB / 403.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004628/0.2756, allocations: 171.6 kB / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003566/0.276, allocations: 375.6 kB / 404 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002109/0.2762, allocations: 91.39 kB / 404 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002143/0.2764, allocations: 159.4 kB / 404.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002286/0.2766, allocations: 175.3 kB / 404.4 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.03e-05/0.2767, allocations: 32 kB / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.623e-05/0.2768, allocations: 36 kB / 404.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.2769, allocations: 95.72 kB / 404.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001249/0.277, allocations: 147.2 kB / 404.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003376/0.2773, allocations: 320.6 kB / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.2774, allocations: 0 / 405 MB, free: 4.023 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2774, allocations: 3.938 kB / 405 MB, free: 4.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.2774, allocations: 0 / 405 MB, free: 4.02 MB / 318.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.001224/0.2786, allocations: 0.6083 MB / 405.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.2787, allocations: 12.03 kB / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.72e-05/0.2788, allocations: 70.72 kB / 405.7 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.616e-05/0.2788, allocations: 36.66 kB / 405.7 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004013/0.2792, allocations: 272.3 kB / 406 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.2795, allocations: 134.2 kB / 406.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.108e-05/0.2795, allocations: 28.28 kB / 406.1 MB, free: 2.758 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00122/0.2808, allocations: 0.5491 MB / 406.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.2808, allocations: 0 / 406.7 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.464e-05/0.2808, allocations: 12 kB / 406.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.2809, allocations: 8 kB / 406.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.2823, allocations: 0.5113 MB / 407.2 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00153/0.2838, allocations: 1.006 MB / 408.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001692/0.2855, allocations: 0.4985 MB / 408.7 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006645/0.2862, allocations: 263.6 kB / 409 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.532e-05/0.2863, allocations: 7.906 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.2863, allocations: 42.5 kB / 409 MB, free: 15.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 4.899e-06/0.2863, allocations: 3.984 kB / 409 MB, free: 15.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04072/0.3271, allocations: 5.717 MB / 414.8 MB, free: 9.969 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.3272, allocations: 149.3 kB / 414.9 MB, free: 9.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.3274, allocations: 195.1 kB / 415.1 MB, free: 9.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.883e-05/0.3275, allocations: 41.7 kB / 415.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.3276, allocations: 145.5 kB / 415.3 MB, free: 9.395 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001926/0.3278, allocations: 189.3 kB / 415.5 MB, free: 9.207 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002887/0.3281, allocations: 106.7 kB / 415.6 MB, free: 9.098 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.3283, allocations: 346.8 kB / 415.9 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.33, allocations: 0.6149 MB / 416.5 MB, free: 8.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001777/0.3317, allocations: 0.8002 MB / 417.3 MB, free: 7.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003189/0.3349, allocations: 1.244 MB / 418.6 MB, free: 5.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.335, allocations: 7.938 kB / 418.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003733/0.3387, allocations: 1.394 MB / 420 MB, free: 4.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.893e-05/0.3388, allocations: 11.94 kB / 420 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.3388, allocations: 8 kB / 420 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.751e-05/0.3388, allocations: 12.22 kB / 420 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.3403, allocations: 207.7 kB / 420.2 MB, free: 4.293 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.708e-05/0.3403, allocations: 15.92 kB / 420.2 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.3413, allocations: 99.73 kB / 420.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.339e-05/0.3414, allocations: 31.98 kB / 420.3 MB, free: 4.148 MB / 334.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.000367/0.3418, allocations: 181.6 kB / 420.5 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003532/0.3422, allocations: 157.1 kB / 420.7 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001973/0.3424, allocations: 63.3 kB / 420.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/0.3424, allocations: 8 kB / 420.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.3424, allocations: 0 / 420.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.3424, allocations: 7.984 kB / 420.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005002/0.3474, allocations: 2.164 MB / 422.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.57e-05/0.3475, allocations: 12.03 kB / 422.9 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008237/0.3483, allocations: 179.7 kB / 423.1 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.695e-05/0.3483, allocations: 16 kB / 423.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.153e-05/0.3484, allocations: 28 kB / 423.1 MB, free: 1.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.67e-05/0.3484, allocations: 19.92 kB / 423.2 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.174e-05/0.3484, allocations: 20.27 kB / 423.2 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.3517, allocations: 1.553 MB / 424.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002426/0.352, allocations: 160.6 kB / 424.9 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.853e-05/0.3521, allocations: 27.98 kB / 424.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006208/0.3527, allocations: 75.98 kB / 425 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001884/0.3529, allocations: 99.66 kB / 425.1 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.042e-05/0.353, allocations: 35.94 kB / 425.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001268/0.3531, allocations: 136.3 kB / 425.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3531, allocations: 0 / 425.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000688/0.3538, allocations: 120 kB / 425.4 MB, free: 14.74 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.003517/0.3573, allocations: 2.14 MB / 427.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.3604, allocations: 1.14 MB / 428.7 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.201e-05/0.3605, allocations: 8 kB / 428.7 MB, free: 11.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.3615, allocations: 338 kB / 429 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000942/0.3625, allocations: 142.3 kB / 429.1 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.3757, allocations: 6.769 MB / 435.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.3762, allocations: 0.8129 MB / 436.7 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004844/0.3767, allocations: 95.25 kB / 436.8 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003642/0.377, allocations: 119.4 kB / 436.9 MB, free: 2.523 MB / 350.1 MB Notification: Performance of SimCode: time 1.132e-06/0.377, allocations: 0 / 436.9 MB, free: 2.523 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03644/0.4135, allocations: 11.22 MB / 448.1 MB, free: 7.418 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.84/9.253, allocations: 12.25 kB / 448.2 MB, free: 7.41 MB / 366.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