Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",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.001502/0.001502, allocations: 113.4 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.001629/0.001629, allocations: 200 kB / 18.01 MB, free: 5.062 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.436/1.436, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 43.92 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3625, allocations: 49.44 MB / 400.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003593/0.3661, allocations: 2.139 MB / 402.4 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.3673, allocations: 0.6509 MB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.3675, allocations: 4 kB / 403 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003205/0.3679, allocations: 43.64 kB / 403.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001712/0.368, allocations: 51.62 kB / 403.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004537/0.3685, allocations: 127.8 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004591/0.369, allocations: 347.2 kB / 403.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.3692, allocations: 64.36 kB / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002634/0.3695, allocations: 151.5 kB / 403.8 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002751/0.3698, allocations: 151.4 kB / 403.9 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/0.3698, allocations: 28 kB / 404 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.764e-05/0.3699, allocations: 32 kB / 404 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.37, allocations: 87.73 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.3702, allocations: 119.4 kB / 404.2 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.3706, allocations: 285.9 kB / 404.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3706, allocations: 3.938 kB / 404.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3706, allocations: 3.938 kB / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.3706, allocations: 4 kB / 404.5 MB, free: 4.562 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001273/0.3719, allocations: 0.5804 MB / 405.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.3719, allocations: 8.031 kB / 405.1 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.423e-05/0.372, allocations: 62.73 kB / 405.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001134/0.3721, allocations: 32.75 kB / 405.2 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004407/0.3726, allocations: 258 kB / 405.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002142/0.3728, allocations: 137.9 kB / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.875e-05/0.3729, allocations: 27.94 kB / 405.6 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008415/0.3737, allocations: 367.6 kB / 405.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.573e-05/0.3738, allocations: 0 / 405.9 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.435e-05/0.3738, allocations: 12 kB / 405.9 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.3738, allocations: 4 kB / 405.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.3751, allocations: 497.9 kB / 406.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.3768, allocations: 0.9957 MB / 407.4 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.378, allocations: 343.1 kB / 407.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000483/0.3784, allocations: 173.9 kB / 407.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.185e-05/0.3785, allocations: 4.234 kB / 407.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.3785, allocations: 38.8 kB / 408 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 1.974e-06/0.3785, allocations: 0 / 408 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of matching and sorting (n=52): time 0.02666/0.4052, allocations: 5.818 MB / 413.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.556e-05/0.4053, allocations: 55.84 kB / 413.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002411/0.4055, allocations: 206.6 kB / 414 MB, free: 10.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.462e-05/0.4056, allocations: 37.69 kB / 414.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.628e-05/0.4057, allocations: 149 kB / 414.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001467/0.4058, allocations: 182.4 kB / 414.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/0.4061, allocations: 94.25 kB / 414.5 MB, free: 10.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001178/0.4062, allocations: 334.8 kB / 414.8 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.4075, allocations: 464.8 kB / 415.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001298/0.4088, allocations: 0.5177 MB / 415.8 MB, free: 8.863 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00229/0.4111, allocations: 0.8071 MB / 416.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4111, allocations: 0 / 416.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002694/0.4138, allocations: 0.9907 MB / 417.6 MB, free: 7.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.4138, allocations: 7.938 kB / 417.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.4139, allocations: 0 / 417.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.4139, allocations: 4 kB / 417.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009764/0.4149, allocations: 167.7 kB / 417.8 MB, free: 6.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.4149, allocations: 7.984 kB / 417.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006786/0.4156, allocations: 83.92 kB / 417.9 MB, free: 6.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.324e-05/0.4156, allocations: 16 kB / 417.9 MB, free: 6.762 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002257/0.4159, allocations: 165.7 kB / 418 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.892e-05/0.416, allocations: 31.75 kB / 418.1 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001185/0.4161, allocations: 51.25 kB / 418.1 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.4161, allocations: 4 kB / 418.1 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4161, allocations: 4 kB / 418.1 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4161, allocations: 3.984 kB / 418.1 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00413/0.4203, allocations: 1.874 MB / 420 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.4203, allocations: 8 kB / 420 MB, free: 4.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006493/0.421, allocations: 143.8 kB / 420.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.62e-05/0.421, allocations: 15.94 kB / 420.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.51e-05/0.421, allocations: 20.31 kB / 420.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-05/0.4211, allocations: 23.92 kB / 420.2 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.827e-06/0.4211, allocations: 11.94 kB / 420.2 MB, free: 4.234 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002741/0.4238, allocations: 1.221 MB / 421.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.4241, allocations: 152.9 kB / 421.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.579e-05/0.4241, allocations: 19.98 kB / 421.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005247/0.4247, allocations: 67.92 kB / 421.7 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000175/0.4248, allocations: 87.67 kB / 421.8 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/0.4249, allocations: 27.98 kB / 421.8 MB, free: 2.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001705/0.4251, allocations: 144.3 kB / 421.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4251, allocations: 0 / 421.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005027/0.4256, allocations: 92 kB / 422 MB, free: 2.289 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.00312/0.4287, allocations: 1.793 MB / 423.8 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00245/0.4312, allocations: 0.8648 MB / 424.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.837e-06/0.4312, allocations: 4 kB / 424.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001014/0.4322, allocations: 328 kB / 425 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006654/0.4329, allocations: 63.47 kB / 425.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01096/0.4439, allocations: 5.247 MB / 430.3 MB, free: 9.547 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.4444, allocations: 0.7762 MB / 431.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004452/0.4448, allocations: 83.19 kB / 431.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/0.4451, allocations: 95.41 kB / 431.3 MB, free: 8.578 MB / 350.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4451, allocations: 4 kB / 431.3 MB, free: 8.574 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0332/0.4783, allocations: 8.343 MB / 439.6 MB, free: 372 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.468/8.947, allocations: 3.984 kB / 439.6 MB, free: 368 kB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_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_Continuous.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches