Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001678/0.001678, allocations: 177.1 kB / 8.048 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.532/1.532, allocations: 205.3 MB / 213.8 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008995/0.0008993, allocations: 82.69 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07456/0.07456, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.952e-05/1.933e-05, allocations: 7.984 kB / 378.9 MB, free: 6.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2334, allocations: 50.38 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1047/0.3381, allocations: 81.39 MB / 0.4987 GB, free: 0.8477 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000251/0.3384, allocations: 71.95 kB / 0.4988 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02065/0.3591, allocations: 7.01 MB / 0.5056 GB, free: 9.758 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.3591, allocations: 0 / 0.5056 GB, free: 9.758 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.27e-05/0.3592, allocations: 8 kB / 0.5056 GB, free: 9.75 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001268/0.3605, allocations: 0.5802 MB / 0.5062 GB, free: 9.125 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3605, allocations: 12.03 kB / 0.5062 GB, free: 9.113 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001291/0.3606, allocations: 39.62 kB / 0.5063 GB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004435/0.3611, allocations: 268.7 kB / 0.5065 GB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002138/0.3613, allocations: 129.8 kB / 0.5066 GB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.235e-05/0.3614, allocations: 23.91 kB / 0.5067 GB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007136/0.3621, allocations: 417.4 kB / 0.5071 GB, free: 8.195 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007637/0.3629, allocations: 463.8 kB / 0.5075 GB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.3629, allocations: 4 kB / 0.5075 GB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.093e-05/0.363, allocations: 0 / 0.5075 GB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.363, allocations: 4 kB / 0.5075 GB, free: 7.703 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001542/0.3645, allocations: 0.9792 MB / 0.5085 GB, free: 6.656 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008597/0.3654, allocations: 394.8 kB / 0.5088 GB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002732/0.3657, allocations: 187.4 kB / 0.509 GB, free: 6.039 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.209e-05/0.3658, allocations: 8 kB / 0.509 GB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.3658, allocations: 38.5 kB / 0.5091 GB, free: 5.984 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.3658, allocations: 0 / 0.5091 GB, free: 5.984 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007276/0.3731, allocations: 1.999 MB / 0.511 GB, free: 3.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.71e-05/0.3732, allocations: 145 kB / 0.5112 GB, free: 3.809 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.3734, allocations: 175.4 kB / 0.5113 GB, free: 3.629 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.786e-05/0.3735, allocations: 29.7 kB / 0.5114 GB, free: 3.594 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.474e-05/0.3736, allocations: 141.5 kB / 0.5115 GB, free: 3.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.3738, allocations: 177.4 kB / 0.5117 GB, free: 3.277 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.919e-05/0.3739, allocations: 0 / 0.5117 GB, free: 3.277 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.374, allocations: 346.8 kB / 0.512 GB, free: 2.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000663/0.3747, allocations: 465.5 kB / 0.5124 GB, free: 2.477 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00077/0.3754, allocations: 0.6291 MB / 0.5131 GB, free: 1.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006205/0.3761, allocations: 414 kB / 0.5134 GB, free: 1.367 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.3761, allocations: 7.953 kB / 0.5135 GB, free: 1.359 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001588/0.3777, allocations: 1.037 MB / 0.5145 GB, free: 324 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.3777, allocations: 8.719 kB / 0.5145 GB, free: 316 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.3777, allocations: 8 kB / 0.5145 GB, free: 308 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.3778, allocations: 12 kB / 0.5145 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.3791, allocations: 227.6 kB / 0.5147 GB, free: 68 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.708e-05/0.3791, allocations: 19.94 kB / 0.5147 GB, free: 48 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2168/0.5959, allocations: 107.4 kB / 0.5148 GB, free: 89.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/0.5961, allocations: 26.45 kB / 0.5149 GB, free: 89.93 MB / 362.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0003167/0.5965, allocations: 125.8 kB / 0.515 GB, free: 89.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000389/0.5969, allocations: 140.7 kB / 0.5151 GB, free: 89.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000191/0.5971, allocations: 54.02 kB / 0.5152 GB, free: 89.79 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.5971, allocations: 8.031 kB / 0.5152 GB, free: 89.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.325e-06/0.5971, allocations: 2.031 kB / 0.5152 GB, free: 89.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.5971, allocations: 4.203 kB / 0.5152 GB, free: 89.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003615/0.6007, allocations: 1.898 MB / 0.517 GB, free: 89.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/0.6008, allocations: 14.42 kB / 0.517 GB, free: 89.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008027/0.6016, allocations: 203.5 kB / 0.5172 GB, free: 89.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.232e-05/0.6016, allocations: 19.3 kB / 0.5173 GB, free: 89.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.6017, allocations: 16.72 kB / 0.5173 GB, free: 89.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.995e-05/0.6017, allocations: 22.58 kB / 0.5173 GB, free: 89.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/0.6017, allocations: 15.59 kB / 0.5173 GB, free: 89.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.6031, allocations: 1.703 MB / 0.519 GB, free: 87.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001625/0.6033, allocations: 159.6 kB / 0.5191 GB, free: 87.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.188e-05/0.6034, allocations: 18.75 kB / 0.5191 GB, free: 87.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006254/0.604, allocations: 91.73 kB / 0.5192 GB, free: 87.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002174/0.6042, allocations: 103.7 kB / 0.5193 GB, free: 87.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.981e-05/0.6043, allocations: 30.44 kB / 0.5194 GB, free: 87.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001161/0.6044, allocations: 139.8 kB / 0.5195 GB, free: 87.61 MB / 362.7 MB Notification: Performance of sort global known variables: time 3e-07/0.6044, allocations: 0 / 0.5195 GB, free: 87.61 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006502/0.6051, allocations: 107.6 kB / 0.5196 GB, free: 87.61 MB / 362.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001549/0.6052, allocations: 123.5 kB / 0.5197 GB, free: 87.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.6064, allocations: 0.8254 MB / 0.5205 GB, free: 87.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6064, allocations: 1.594 kB / 0.5205 GB, free: 87.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003671/0.6068, allocations: 214.8 kB / 0.5207 GB, free: 87.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005718/0.6073, allocations: 107 kB / 0.5208 GB, free: 86.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.609, allocations: 0.9348 MB / 0.5217 GB, free: 86.26 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.6093, allocations: 0.8212 MB / 0.5225 GB, free: 85.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005874/0.6099, allocations: 90.44 kB / 0.5226 GB, free: 85.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00029/0.6102, allocations: 38.44 kB / 0.5227 GB, free: 85.51 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.6102, allocations: 0.5312 kB / 0.5227 GB, free: 85.51 MB / 362.7 MB Notification: Performance of Templates: time 0.01095/0.6212, allocations: 7.21 MB / 0.5297 GB, free: 83.55 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.T,PI.k,PI.y,angle.phi,gain.k,gain.y,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,subSample1.factor,super.factor,super.inferFactor,time