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.001308/0.001308, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001357/0.001357, allocations: 200.7 kB / 18.74 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.466/1.466, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 59.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2821, allocations: 50.54 MB / 408.7 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003704/0.2858, allocations: 2.146 MB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001286/0.2872, allocations: 0.686 MB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.2873, allocations: 4 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00027/0.2876, allocations: 43.64 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.2877, allocations: 51.62 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.2881, allocations: 127.8 kB / 411.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003809/0.2885, allocations: 339.2 kB / 412.1 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001788/0.2887, allocations: 72.3 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002725/0.289, allocations: 151.5 kB / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002551/0.2892, allocations: 151.4 kB / 412.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.571e-05/0.2893, allocations: 31.94 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.057e-05/0.2893, allocations: 32 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.2894, allocations: 79.8 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00013/0.2896, allocations: 123.4 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003634/0.2899, allocations: 285.9 kB / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.29, allocations: 0 / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.29, allocations: 0 / 413 MB, free: 13.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.29, allocations: 0 / 413 MB, free: 13.19 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.001232/0.2912, allocations: 0.5957 MB / 413.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.2913, allocations: 11.97 kB / 413.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.193e-05/0.2914, allocations: 58.73 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.169e-05/0.2914, allocations: 32.8 kB / 413.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.2919, allocations: 251.9 kB / 414 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/0.2921, allocations: 141.9 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.323e-05/0.2921, allocations: 20 kB / 414.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008219/0.293, allocations: 371.5 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.293, allocations: 3.953 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.198e-05/0.293, allocations: 8 kB / 414.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.939e-06/0.2931, allocations: 8 kB / 414.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/0.2943, allocations: 497.9 kB / 415 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.2961, allocations: 0.9996 MB / 416 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001139/0.2973, allocations: 335.1 kB / 416.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004882/0.2978, allocations: 189.1 kB / 416.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.169e-05/0.2978, allocations: 240 / 416.5 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.2978, allocations: 38.8 kB / 416.6 MB, free: 9.453 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.212e-06/0.2978, allocations: 0 / 416.6 MB, free: 9.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02687/0.3247, allocations: 5.798 MB / 422.4 MB, free: 3.562 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.3248, allocations: 59.84 kB / 422.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000248/0.3251, allocations: 198.3 kB / 422.6 MB, free: 3.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.812e-05/0.3252, allocations: 37.7 kB / 422.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.3253, allocations: 149 kB / 422.8 MB, free: 3.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001794/0.3255, allocations: 182.4 kB / 423 MB, free: 2.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002189/0.3257, allocations: 94.2 kB / 423.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3259, allocations: 338.8 kB / 423.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.3271, allocations: 468.8 kB / 423.8 MB, free: 2.023 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.3284, allocations: 0.5138 MB / 424.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/0.3307, allocations: 0.8071 MB / 425.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3307, allocations: 0 / 425.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00269/0.3334, allocations: 0.9829 MB / 426.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.3334, allocations: 11.94 kB / 426.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3334, allocations: 0 / 426.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.3335, allocations: 4 kB / 426.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.3345, allocations: 175.7 kB / 426.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.3345, allocations: 12.02 kB / 426.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006712/0.3352, allocations: 79.89 kB / 426.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.483e-05/0.3352, allocations: 16 kB / 426.4 MB, free: 15.39 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.0002438/0.3355, allocations: 161.7 kB / 426.6 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.026e-05/0.3356, allocations: 35.75 kB / 426.6 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.3357, allocations: 51.3 kB / 426.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.3357, allocations: 8 kB / 426.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3357, allocations: 3.938 kB / 426.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3357, allocations: 3.938 kB / 426.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004135/0.3399, allocations: 1.882 MB / 428.6 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.3399, allocations: 8 kB / 428.6 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006663/0.3406, allocations: 148.5 kB / 428.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.807e-05/0.3406, allocations: 15.94 kB / 428.8 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.504e-05/0.3407, allocations: 19.98 kB / 428.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.218e-05/0.3407, allocations: 11.94 kB / 428.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.762e-05/0.3407, allocations: 15.94 kB / 428.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002747/0.3435, allocations: 1.229 MB / 430 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/0.3437, allocations: 144.9 kB / 430.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.319e-05/0.3437, allocations: 23.98 kB / 430.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005165/0.3443, allocations: 67.92 kB / 430.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.3445, allocations: 91.66 kB / 430.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-05/0.3445, allocations: 24 kB / 430.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001784/0.3447, allocations: 152.3 kB / 430.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.3447, allocations: 0 / 430.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005199/0.3452, allocations: 92 kB / 430.6 MB, free: 10.89 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.003056/0.3483, allocations: 1.777 MB / 432.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.3506, allocations: 0.8687 MB / 433.3 MB, free: 8.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.3506, allocations: 4.25 kB / 433.3 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000898/0.3515, allocations: 325.5 kB / 433.6 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.3521, allocations: 58.78 kB / 433.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/0.3625, allocations: 5.243 MB / 438.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004341/0.363, allocations: 0.7762 MB / 439.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003954/0.3634, allocations: 87.17 kB / 439.7 MB, free: 1.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002812/0.3637, allocations: 95.42 kB / 439.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3637, allocations: 0 / 439.8 MB, free: 1.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03481/0.3985, allocations: 8.332 MB / 448.2 MB, free: 8.988 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.657/9.056, allocations: 15.19 kB / 448.2 MB, free: 8.977 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.1.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