Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,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.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,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.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001012/0.001012, allocations: 199.5 kB / 18.07 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007498/0.0007497, allocations: 100.7 kB / 297.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002035/0.0002036, allocations: 4 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.225, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09787/0.323, allocations: 80.18 MB / 488.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.3233, allocations: 75.97 kB / 488.9 MB, free: 11.35 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01682/0.3402, allocations: 5.685 MB / 494.6 MB, free: 5.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3402, allocations: 192 / 494.6 MB, free: 5.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.84e-05/0.3403, allocations: 7.938 kB / 494.6 MB, free: 5.652 MB / 362.7 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.001035/0.3413, allocations: 0.5533 MB / 495.2 MB, free: 5.047 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.3414, allocations: 12.02 kB / 495.2 MB, free: 5.035 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.023e-05/0.3415, allocations: 32.66 kB / 495.2 MB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003527/0.3418, allocations: 243.5 kB / 495.4 MB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002161/0.342, allocations: 146.2 kB / 495.6 MB, free: 4.566 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.016e-05/0.3421, allocations: 32.22 kB / 495.6 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008676/0.343, allocations: 383.4 kB / 496 MB, free: 4.152 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.343, allocations: 4 kB / 496 MB, free: 4.148 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/0.3431, allocations: 15.98 kB / 496 MB, free: 4.133 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.3431, allocations: 4 kB / 496 MB, free: 4.129 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.3444, allocations: 0.5175 MB / 496.5 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.3461, allocations: 1.034 MB / 497.6 MB, free: 2.512 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009766/0.3471, allocations: 334.3 kB / 497.9 MB, free: 2.176 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005107/0.3477, allocations: 196.7 kB / 498.1 MB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.3477, allocations: 4 kB / 498.1 MB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.3477, allocations: 38.5 kB / 498.1 MB, free: 1.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.963e-06/0.3478, allocations: 0 / 498.1 MB, free: 1.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.02505/0.3728, allocations: 6.712 MB / 0.493 GB, free: 11.12 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.16e-05/0.3729, allocations: 59.78 kB / 0.4931 GB, free: 11.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002279/0.3731, allocations: 198.8 kB / 0.4932 GB, free: 10.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.409e-05/0.3732, allocations: 37.7 kB / 0.4933 GB, free: 10.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.673e-05/0.3733, allocations: 144.7 kB / 0.4934 GB, free: 10.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.3734, allocations: 181.4 kB / 0.4936 GB, free: 10.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.047e-05/0.3735, allocations: 15.94 kB / 0.4936 GB, free: 10.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.932e-05/0.3736, allocations: 338.8 kB / 0.4939 GB, free: 10.13 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.3748, allocations: 0.493 MB / 0.4944 GB, free: 9.637 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.3761, allocations: 0.5607 MB / 0.495 GB, free: 9.059 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002232/0.3783, allocations: 0.8814 MB / 0.4958 GB, free: 8.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3783, allocations: 0 / 0.4958 GB, free: 8.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002613/0.381, allocations: 1.072 MB / 0.4969 GB, free: 7.082 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.381, allocations: 8.031 kB / 0.4969 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.381, allocations: 0 / 0.4969 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.381, allocations: 7.984 kB / 0.4969 GB, free: 7.066 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009338/0.382, allocations: 191.7 kB / 0.4971 GB, free: 6.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.646e-06/0.382, allocations: 4 kB / 0.4971 GB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006254/0.3826, allocations: 111.9 kB / 0.4972 GB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.773e-05/0.3827, allocations: 16 kB / 0.4972 GB, free: 6.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002286/0.3829, allocations: 154.8 kB / 0.4973 GB, free: 6.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.97e-05/0.383, allocations: 23.72 kB / 0.4974 GB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.3831, allocations: 55.3 kB / 0.4974 GB, free: 6.512 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.3831, allocations: 11.94 kB / 0.4974 GB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3832, allocations: 4 kB / 0.4974 GB, free: 6.496 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3832, allocations: 3.984 kB / 0.4974 GB, free: 6.492 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003885/0.3871, allocations: 2.006 MB / 0.4994 GB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.3871, allocations: 8 kB / 0.4994 GB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006158/0.3877, allocations: 164 kB / 0.4996 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.1e-05/0.3877, allocations: 12 kB / 0.4996 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.536e-05/0.3878, allocations: 23.98 kB / 0.4996 GB, free: 4.121 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.234e-05/0.3878, allocations: 19.88 kB / 0.4996 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.363e-06/0.3878, allocations: 11.94 kB / 0.4996 GB, free: 4.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002723/0.3905, allocations: 1.35 MB / 0.5009 GB, free: 2.605 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.3907, allocations: 144.8 kB / 0.5011 GB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.783e-05/0.3908, allocations: 27.92 kB / 0.5011 GB, free: 2.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005162/0.3913, allocations: 96.02 kB / 0.5012 GB, free: 2.324 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000181/0.3915, allocations: 103.6 kB / 0.5013 GB, free: 2.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.889e-05/0.3915, allocations: 20 kB / 0.5013 GB, free: 2.203 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001584/0.3917, allocations: 159.1 kB / 0.5015 GB, free: 2.047 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3917, allocations: 0 / 0.5015 GB, free: 2.047 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004803/0.3922, allocations: 100 kB / 0.5016 GB, free: 1.949 MB / 378.7 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001728/0.3924, allocations: 138.9 kB / 0.5017 GB, free: 1.801 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00227/0.3947, allocations: 0.9352 MB / 0.5026 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.3947, allocations: 0 / 0.5026 GB, free: 0.8633 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009443/0.3956, allocations: 373.7 kB / 0.503 GB, free: 0.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000684/0.3963, allocations: 62.2 kB / 0.503 GB, free: 452 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.145/0.5413, allocations: 1.176 MB / 0.5042 GB, free: 99.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.5416, allocations: 0.786 MB / 0.5049 GB, free: 98.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000305/0.5419, allocations: 38.62 kB / 0.505 GB, free: 98.7 MB / 378.7 MB Notification: Performance of SimCode: time 7.22e-07/0.5419, allocations: 0 / 0.505 GB, free: 98.7 MB / 378.7 MB Notification: Performance of Templates: time 0.007821/0.5497, allocations: 5.545 MB / 0.5104 GB, free: 97.99 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches