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.001417/0.001416, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001319/0.001319, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.462/1.462, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001121/0.001121, allocations: 46.14 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1118, allocations: 49.45 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003558/0.1154, allocations: 2.14 MB / 352.3 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.1165, allocations: 0.6509 MB / 352.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.1166, allocations: 4 kB / 353 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002764/0.1169, allocations: 43.64 kB / 353 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001337/0.1171, allocations: 47.62 kB / 353 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003258/0.1174, allocations: 127.8 kB / 353.2 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003601/0.1178, allocations: 339.2 kB / 353.5 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.118, allocations: 68.22 kB / 353.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000238/0.1182, allocations: 147.5 kB / 353.7 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002593/0.1185, allocations: 151.5 kB / 353.9 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.223e-05/0.1186, allocations: 32 kB / 353.9 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.442e-05/0.1187, allocations: 28 kB / 353.9 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.1188, allocations: 87.72 kB / 354 MB, free: 456 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.1189, allocations: 123.4 kB / 354.1 MB, free: 332 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003554/0.1193, allocations: 283.3 kB / 354.4 MB, free: 48 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.1193, allocations: 0 / 354.4 MB, free: 48 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1193, allocations: 0 / 354.4 MB, free: 48 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.1193, allocations: 0 / 354.4 MB, free: 48 kB / 286.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.001474/0.1208, allocations: 0.5728 MB / 355 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.758e-05/0.1209, allocations: 8.031 kB / 355 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.121, allocations: 66.72 kB / 355 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001141/0.1211, allocations: 36.59 kB / 355.1 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003926/0.1215, allocations: 255.6 kB / 355.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002284/0.1218, allocations: 130 kB / 355.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.979e-05/0.1218, allocations: 24 kB / 355.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009392/0.1228, allocations: 367.6 kB / 355.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.232e-05/0.1228, allocations: 7.938 kB / 355.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.283e-05/0.1229, allocations: 8 kB / 355.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.1229, allocations: 8 kB / 355.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.1243, allocations: 493.9 kB / 356.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.1262, allocations: 1.015 MB / 357.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.1274, allocations: 339.1 kB / 357.7 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005402/0.1279, allocations: 182.4 kB / 357.9 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.128, allocations: 4.234 kB / 357.9 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.128, allocations: 30.8 kB / 357.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.246e-06/0.128, allocations: 3.984 kB / 357.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.02777/0.1558, allocations: 5.8 MB / 363.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.1559, allocations: 55.84 kB / 363.8 MB, free: 6.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.1563, allocations: 198.9 kB / 364 MB, free: 6.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.892e-05/0.1563, allocations: 37.7 kB / 364 MB, free: 6.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.1565, allocations: 148.6 kB / 364.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001724/0.1567, allocations: 177.4 kB / 364.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002206/0.1569, allocations: 94.19 kB / 364.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.157, allocations: 338.8 kB / 364.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001321/0.1584, allocations: 460.8 kB / 365.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.1597, allocations: 0.5177 MB / 365.7 MB, free: 4.379 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002414/0.1621, allocations: 0.8071 MB / 366.5 MB, free: 3.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.1622, allocations: 0 / 366.5 MB, free: 3.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002822/0.165, allocations: 0.9866 MB / 367.5 MB, free: 2.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.165, allocations: 7.938 kB / 367.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.058e-05/0.165, allocations: 11.92 kB / 367.5 MB, free: 2.543 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.1651, allocations: 4 kB / 367.5 MB, free: 2.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000974/0.166, allocations: 163.7 kB / 367.7 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.1661, allocations: 7.984 kB / 367.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006906/0.1668, allocations: 91.92 kB / 367.8 MB, free: 2.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.371e-05/0.1668, allocations: 19.98 kB / 367.8 MB, free: 2.262 MB / 302.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.0002267/0.1671, allocations: 153.7 kB / 367.9 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.302e-05/0.1672, allocations: 31.56 kB / 368 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001066/0.1673, allocations: 55.28 kB / 368 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.1673, allocations: 12 kB / 368 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1673, allocations: 0 / 368 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.1673, allocations: 3.984 kB / 368 MB, free: 1.996 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1492/0.3165, allocations: 1.864 MB / 369.9 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.021e-05/0.3166, allocations: 8.312 kB / 369.9 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007597/0.3174, allocations: 143.8 kB / 370.1 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.559e-05/0.3174, allocations: 16.12 kB / 370.1 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.3175, allocations: 20.2 kB / 370.1 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.486e-05/0.3175, allocations: 16.25 kB / 370.1 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.221e-05/0.3175, allocations: 13.09 kB / 370.1 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002744/0.3202, allocations: 1.222 MB / 371.3 MB, free: 25.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/0.3204, allocations: 148.8 kB / 371.5 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.736e-05/0.3205, allocations: 22.06 kB / 371.5 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000517/0.321, allocations: 74.28 kB / 371.6 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.3212, allocations: 85.25 kB / 371.7 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.062e-05/0.3212, allocations: 22.84 kB / 371.7 MB, free: 25.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001497/0.3214, allocations: 144.1 kB / 371.8 MB, free: 25.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3214, allocations: 0.6562 kB / 371.8 MB, free: 25.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004919/0.3219, allocations: 93.59 kB / 371.9 MB, free: 25.29 MB / 302.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.002965/0.3249, allocations: 1.788 MB / 373.7 MB, free: 24.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002329/0.3272, allocations: 0.8753 MB / 374.6 MB, free: 24.13 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3272, allocations: 5.469 kB / 374.6 MB, free: 24.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009458/0.3282, allocations: 324.9 kB / 374.9 MB, free: 24.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006191/0.3288, allocations: 60.72 kB / 375 MB, free: 24.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.3391, allocations: 5.225 MB / 380.2 MB, free: 20.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.3395, allocations: 0.7838 MB / 381 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005327/0.34, allocations: 79.41 kB / 381.1 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002935/0.3403, allocations: 93.17 kB / 381.1 MB, free: 20 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3404, allocations: 0 / 381.1 MB, free: 20 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02817/0.3685, allocations: 8.289 MB / 389.4 MB, free: 17.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.319/8.688, allocations: 13.23 kB / 389.4 MB, free: 17.13 MB / 302.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