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.001424/0.001424, allocations: 109.8 kB / 17.06 MB, free: 6.016 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.001472/0.001472, allocations: 191 kB / 18 MB, free: 5.102 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.481/1.481, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001169, allocations: 39.94 kB / 350.8 MB, free: 3.789 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3489, allocations: 49.45 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004523/0.3534, allocations: 2.317 MB / 402.5 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001856/0.3553, allocations: 0.7716 MB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003203/0.3557, allocations: 11.94 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003932/0.3561, allocations: 51.56 kB / 403.4 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003281/0.3565, allocations: 59.56 kB / 403.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006272/0.3571, allocations: 165.7 kB / 403.6 MB, free: 5.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005417/0.3577, allocations: 367.6 kB / 404 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002533/0.3579, allocations: 103.4 kB / 404.1 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003231/0.3583, allocations: 167.4 kB / 404.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000286/0.3585, allocations: 171.3 kB / 404.4 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.101e-05/0.3586, allocations: 35.94 kB / 404.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.043e-05/0.3587, allocations: 32 kB / 404.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.3588, allocations: 91.78 kB / 404.5 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001706/0.359, allocations: 147.2 kB / 404.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005216/0.3595, allocations: 317.8 kB / 405 MB, free: 4.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3595, allocations: 7.984 kB / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.3596, allocations: 0 / 405 MB, free: 4.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.3596, allocations: 7.938 kB / 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.001504/0.3611, allocations: 0.6198 MB / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.268e-05/0.3611, allocations: 8.031 kB / 405.6 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001066/0.3613, allocations: 70.72 kB / 405.7 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.514e-05/0.3614, allocations: 36.75 kB / 405.7 MB, free: 3.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005178/0.3619, allocations: 268.5 kB / 406 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.3621, allocations: 142.2 kB / 406.1 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.244e-05/0.3622, allocations: 28.38 kB / 406.2 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.3635, allocations: 0.5452 MB / 406.7 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.578e-05/0.3635, allocations: 0 / 406.7 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/0.3636, allocations: 12 kB / 406.7 MB, free: 2.164 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.039e-05/0.3636, allocations: 8 kB / 406.7 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001368/0.365, allocations: 0.5074 MB / 407.2 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.3666, allocations: 1.018 MB / 408.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.3682, allocations: 0.5002 MB / 408.8 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006548/0.3689, allocations: 259.6 kB / 409 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.872e-05/0.369, allocations: 7.984 kB / 409 MB, free: 15.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.369, allocations: 42.56 kB / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.334e-06/0.369, allocations: 0 / 409.1 MB, free: 15.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03873/0.4077, allocations: 5.72 MB / 414.8 MB, free: 9.957 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001664/0.408, allocations: 148.9 kB / 414.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.4083, allocations: 191.6 kB / 415.1 MB, free: 9.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001092/0.4084, allocations: 37.7 kB / 415.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.4086, allocations: 149.7 kB / 415.3 MB, free: 9.387 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002573/0.4088, allocations: 206.3 kB / 415.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003169/0.4092, allocations: 118.6 kB / 415.6 MB, free: 9.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4093, allocations: 338.8 kB / 415.9 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001569/0.4109, allocations: 0.6187 MB / 416.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001803/0.4127, allocations: 0.7925 MB / 417.4 MB, free: 7.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003105/0.4158, allocations: 1.259 MB / 418.6 MB, free: 5.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.4158, allocations: 3.938 kB / 418.6 MB, free: 5.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003573/0.4194, allocations: 1.394 MB / 420 MB, free: 4.492 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.4195, allocations: 8 kB / 420 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.4195, allocations: 7.938 kB / 420 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.041e-05/0.4195, allocations: 12 kB / 420 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/0.4208, allocations: 207.6 kB / 420.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.173e-05/0.4209, allocations: 12.03 kB / 420.3 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009791/0.4219, allocations: 103.8 kB / 420.4 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.149e-05/0.422, allocations: 28 kB / 420.4 MB, free: 4.121 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.0003533/0.4223, allocations: 185.6 kB / 420.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003557/0.4227, allocations: 153.4 kB / 420.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001631/0.4229, allocations: 67.3 kB / 420.8 MB, free: 3.707 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.278e-06/0.4229, allocations: 8 kB / 420.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.4229, allocations: 0 / 420.8 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.4229, allocations: 3.984 kB / 420.8 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004983/0.4279, allocations: 2.167 MB / 423 MB, free: 1.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.457e-05/0.428, allocations: 8 kB / 423 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007856/0.4287, allocations: 188.4 kB / 423.2 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-05/0.4288, allocations: 16 kB / 423.2 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.155e-05/0.4289, allocations: 24 kB / 423.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.795e-05/0.4289, allocations: 19.92 kB / 423.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/0.4289, allocations: 15.94 kB / 423.2 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003227/0.4321, allocations: 1.557 MB / 424.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002565/0.4324, allocations: 168.7 kB / 424.9 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.456e-05/0.4325, allocations: 24 kB / 425 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006249/0.4331, allocations: 79.91 kB / 425.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.4333, allocations: 91.73 kB / 425.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.191e-05/0.4334, allocations: 31.94 kB / 425.2 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.4335, allocations: 152.3 kB / 425.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4335, allocations: 0 / 425.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007237/0.4343, allocations: 120 kB / 425.4 MB, free: 14.7 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.00363/0.4379, allocations: 2.125 MB / 427.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002982/0.4409, allocations: 1.147 MB / 428.7 MB, free: 11.26 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.21e-05/0.441, allocations: 4 kB / 428.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.442, allocations: 338.4 kB / 429 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/0.4432, allocations: 140.6 kB / 429.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/0.4567, allocations: 6.772 MB / 436 MB, free: 3.531 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004973/0.4573, allocations: 0.8168 MB / 436.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005557/0.4578, allocations: 95.3 kB / 436.9 MB, free: 2.594 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004029/0.4583, allocations: 111.4 kB / 437 MB, free: 2.484 MB / 350.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4583, allocations: 3.938 kB / 437 MB, free: 2.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03637/0.4946, allocations: 11.23 MB / 448.2 MB, free: 7.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.7/9.195, allocations: 8.625 kB / 448.2 MB, free: 7.359 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