Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001125/0.001125, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00125/0.00125, allocations: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 64.03 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2794, allocations: 50.55 MB / 408.7 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003511/0.2829, allocations: 2.155 MB / 410.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.2842, allocations: 0.6822 MB / 411.6 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001315/0.2844, allocations: 7.938 kB / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003099/0.2847, allocations: 39.7 kB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001597/0.2849, allocations: 59.55 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.2852, allocations: 115.8 kB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003399/0.2856, allocations: 343.2 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.2858, allocations: 76.28 kB / 412.2 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002578/0.286, allocations: 151.5 kB / 412.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.2863, allocations: 147.4 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.2863, allocations: 28 kB / 412.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.11e-05/0.2864, allocations: 39.94 kB / 412.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.778e-05/0.2865, allocations: 87.77 kB / 412.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.2866, allocations: 123.4 kB / 412.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003359/0.2869, allocations: 277.9 kB / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2869, allocations: 0 / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2869, allocations: 0 / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.287, allocations: 4 kB / 413 MB, free: 13.34 MB / 334.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.001164/0.2881, allocations: 0.584 MB / 413.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.2882, allocations: 11.97 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.399e-05/0.2883, allocations: 62.72 kB / 413.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.374e-05/0.2883, allocations: 32.8 kB / 413.7 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004332/0.2888, allocations: 268 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002095/0.289, allocations: 134 kB / 414.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.708e-05/0.2891, allocations: 24 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008736/0.29, allocations: 363.5 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.29, allocations: 7.953 kB / 414.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.29, allocations: 15.98 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.29, allocations: 4 kB / 414.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.2914, allocations: 489.9 kB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.293, allocations: 0.9996 MB / 416 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.2942, allocations: 343.1 kB / 416.3 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005106/0.2948, allocations: 181.1 kB / 416.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.049e-05/0.2948, allocations: 240 / 416.5 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.2948, allocations: 34.8 kB / 416.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.434e-06/0.2948, allocations: 0 / 416.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02742/0.3223, allocations: 5.806 MB / 422.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.3224, allocations: 63.84 kB / 422.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002678/0.3227, allocations: 194.3 kB / 422.6 MB, free: 3.438 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/0.3228, allocations: 37.7 kB / 422.6 MB, free: 3.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.3229, allocations: 145 kB / 422.8 MB, free: 3.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001945/0.3231, allocations: 190.4 kB / 423 MB, free: 3.062 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002133/0.3233, allocations: 90.2 kB / 423.1 MB, free: 2.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3235, allocations: 338.8 kB / 423.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.3248, allocations: 464.8 kB / 423.8 MB, free: 2.176 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001321/0.3261, allocations: 0.5138 MB / 424.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002368/0.3285, allocations: 0.8071 MB / 425.2 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3285, allocations: 4 kB / 425.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002783/0.3313, allocations: 0.9828 MB / 426.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.472e-05/0.3313, allocations: 15.92 kB / 426.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.3313, allocations: 0 / 426.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3314, allocations: 4 kB / 426.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009973/0.3324, allocations: 171.8 kB / 426.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.428e-05/0.3324, allocations: 4 kB / 426.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007219/0.3331, allocations: 83.88 kB / 426.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-05/0.3332, allocations: 16 kB / 426.4 MB, free: 15.54 MB / 350.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.0002775/0.3335, allocations: 161.7 kB / 426.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.921e-05/0.3336, allocations: 35.75 kB / 426.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.3337, allocations: 51.3 kB / 426.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.3337, allocations: 4 kB / 426.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.3337, allocations: 0 / 426.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.3338, allocations: 7.922 kB / 426.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004332/0.3381, allocations: 1.877 MB / 428.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.659e-05/0.3381, allocations: 8 kB / 428.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006692/0.3388, allocations: 159.8 kB / 428.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.489e-05/0.3388, allocations: 15.94 kB / 428.8 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.312e-05/0.3389, allocations: 20 kB / 428.8 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.588e-05/0.3389, allocations: 15.94 kB / 428.8 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/0.3389, allocations: 11.94 kB / 428.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002804/0.3417, allocations: 1.221 MB / 430 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001952/0.3419, allocations: 148.9 kB / 430.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.1e-05/0.342, allocations: 20 kB / 430.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000537/0.3426, allocations: 75.91 kB / 430.3 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.3427, allocations: 87.67 kB / 430.3 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.926e-05/0.3428, allocations: 24 kB / 430.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001657/0.343, allocations: 148.3 kB / 430.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.343, allocations: 0 / 430.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005106/0.3435, allocations: 96 kB / 430.6 MB, free: 11.05 MB / 350.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.003124/0.3466, allocations: 1.777 MB / 432.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002423/0.3491, allocations: 0.8726 MB / 433.3 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.3491, allocations: 0 / 433.3 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009878/0.3501, allocations: 321.7 kB / 433.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006854/0.3508, allocations: 62.2 kB / 433.6 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.011/0.3618, allocations: 5.246 MB / 438.9 MB, free: 2.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.3622, allocations: 0.7801 MB / 439.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004631/0.3627, allocations: 79.2 kB / 439.7 MB, free: 1.445 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.363, allocations: 99.41 kB / 439.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3631, allocations: 0 / 439.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.3937, allocations: 8.339 MB / 448.2 MB, free: 9.137 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.634/9.027, allocations: 15.55 kB / 448.2 MB, free: 9.125 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches