Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001322/0.001321, allocations: 199.3 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.424/1.424, allocations: 226.6 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009083/0.0009082, allocations: 92.56 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002588/0.0002589, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2811, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002327/0.2835, allocations: 1.972 MB / 410 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001322/0.2848, allocations: 0.7807 MB / 410.8 MB, free: 24.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001613/0.285, allocations: 7.938 kB / 410.8 MB, free: 24.93 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000309/0.2853, allocations: 33.55 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000183/0.2855, allocations: 47.67 kB / 410.9 MB, free: 24.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.286, allocations: 144.3 kB / 411 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002937/0.2863, allocations: 343.3 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.2866, allocations: 95.67 kB / 411.4 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002942/0.2869, allocations: 135.5 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001951/0.2871, allocations: 147.4 kB / 411.7 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.943e-05/0.2871, allocations: 16 kB / 411.7 MB, free: 24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.791e-05/0.2872, allocations: 16 kB / 411.8 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.934e-05/0.2873, allocations: 79.66 kB / 411.8 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001651/0.2874, allocations: 149.1 kB / 412 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.2877, allocations: 228.4 kB / 412.2 MB, free: 23.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.2877, allocations: 3.844 kB / 412.2 MB, free: 23.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2877, allocations: 0 / 412.2 MB, free: 23.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.2877, allocations: 0 / 412.2 MB, free: 23.53 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001262/0.289, allocations: 0.5822 MB / 412.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.91e-05/0.2891, allocations: 8.031 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.043e-05/0.2892, allocations: 40.56 kB / 412.8 MB, free: 22.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003861/0.2896, allocations: 284.2 kB / 413.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001888/0.2898, allocations: 142.3 kB / 413.3 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.648e-05/0.2898, allocations: 32.38 kB / 413.3 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.291, allocations: 0.5661 MB / 413.8 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.589e-05/0.2911, allocations: 7.938 kB / 413.9 MB, free: 21.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.775e-05/0.2911, allocations: 8 kB / 413.9 MB, free: 21.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.2911, allocations: 8 kB / 413.9 MB, free: 21.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001225/0.2923, allocations: 0.5347 MB / 414.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.2939, allocations: 1.033 MB / 415.4 MB, free: 20.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.2954, allocations: 0.518 MB / 416 MB, free: 19.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005342/0.2959, allocations: 266.8 kB / 416.2 MB, free: 19.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.138e-05/0.296, allocations: 8 kB / 416.2 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/0.296, allocations: 46.48 kB / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 3.907e-06/0.2961, allocations: 0 / 416.3 MB, free: 19.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.0342/0.3303, allocations: 6.739 MB / 423 MB, free: 12.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001032/0.3304, allocations: 156.9 kB / 423.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.3306, allocations: 201 kB / 423.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.856e-05/0.3307, allocations: 41.7 kB / 423.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.3308, allocations: 137.6 kB / 423.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001414/0.3309, allocations: 193.7 kB / 423.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.91e-05/0.331, allocations: 12 kB / 423.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.286e-05/0.3311, allocations: 346.8 kB / 424.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.3324, allocations: 0.65 MB / 424.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/0.3338, allocations: 0.8392 MB / 425.6 MB, free: 9.754 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002526/0.3364, allocations: 1.318 MB / 426.9 MB, free: 8.359 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.3364, allocations: 0 / 426.9 MB, free: 8.359 MB / 298.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002974/0.3394, allocations: 1.468 MB / 428.4 MB, free: 6.887 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.3394, allocations: 7.938 kB / 428.4 MB, free: 6.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.3394, allocations: 11.98 kB / 428.4 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.3394, allocations: 8 kB / 428.4 MB, free: 6.859 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.3407, allocations: 231.7 kB / 428.6 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.685e-05/0.3407, allocations: 11.94 kB / 428.6 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008689/0.3416, allocations: 127.7 kB / 428.7 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.626e-05/0.3417, allocations: 28 kB / 428.8 MB, free: 6.469 MB / 298.7 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.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 initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003194/0.342, allocations: 177.6 kB / 428.9 MB, free: 6.285 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002896/0.3423, allocations: 149.2 kB / 429.1 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001969/0.3425, allocations: 67.3 kB / 429.2 MB, free: 6.07 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.856e-06/0.3425, allocations: 8 kB / 429.2 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.558e-05/0.3426, allocations: 0 / 429.2 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.3426, allocations: 7.922 kB / 429.2 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004352/0.3469, allocations: 2.285 MB / 431.5 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.347, allocations: 12.19 kB / 431.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006794/0.3477, allocations: 203.7 kB / 431.7 MB, free: 3.375 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.348e-05/0.3477, allocations: 16 kB / 431.7 MB, free: 3.359 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.999e-05/0.3477, allocations: 32 kB / 431.7 MB, free: 3.328 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.394e-05/0.3478, allocations: 23.92 kB / 431.7 MB, free: 3.305 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.898e-06/0.3478, allocations: 15.94 kB / 431.7 MB, free: 3.289 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002684/0.3505, allocations: 1.666 MB / 433.4 MB, free: 1.469 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001743/0.3507, allocations: 164.6 kB / 433.6 MB, free: 1.289 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/0.3507, allocations: 28.17 kB / 433.6 MB, free: 1.262 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000529/0.3513, allocations: 91.98 kB / 433.7 MB, free: 1.172 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.3515, allocations: 107.8 kB / 433.8 MB, free: 1.066 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.321e-05/0.3515, allocations: 32 kB / 433.8 MB, free: 1.035 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001119/0.3516, allocations: 140.1 kB / 434 MB, free: 0.8984 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3516, allocations: 4 kB / 434 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006325/0.3523, allocations: 120 kB / 434.1 MB, free: 0.7773 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001696/0.3524, allocations: 146.9 kB / 434.2 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002549/0.355, allocations: 1.182 MB / 435.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.355, allocations: 1.375 kB / 435.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009711/0.356, allocations: 381.8 kB / 435.8 MB, free: 15.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001039/0.3571, allocations: 142.6 kB / 435.9 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/0.3595, allocations: 1.367 MB / 437.3 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.3599, allocations: 0.8167 MB / 438.1 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003416/0.3603, allocations: 39.44 kB / 438.1 MB, free: 12.5 MB / 314.7 MB Notification: Performance of SimCode: time 1.172e-06/0.3603, allocations: 0 / 438.1 MB, free: 12.5 MB / 314.7 MB Notification: Performance of Templates: time 0.01062/0.3709, allocations: 7.118 MB / 445.3 MB, free: 5.398 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches