Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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: 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_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_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00081/0.00081, allocations: 94.08 kB / 17.01 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009087/0.0009089, allocations: 194 kB / 17.91 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.7 MB / 246.4 MB, free: 9.777 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001961/0.0001961, allocations: 4 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08795/0.08816, allocations: 51.52 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002281/0.09048, allocations: 1.965 MB / 360.6 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.09171, allocations: 0.8188 MB / 361.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.09184, allocations: 7.938 kB / 361.4 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002101/0.09206, allocations: 35.77 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.09221, allocations: 43.7 kB / 361.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004034/0.09263, allocations: 139.7 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003253/0.09296, allocations: 339.6 kB / 362 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.09315, allocations: 86.22 kB / 362 MB, free: 10 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.0934, allocations: 135.5 kB / 362.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.09362, allocations: 151.4 kB / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.12e-05/0.09367, allocations: 16 kB / 362.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.678e-05/0.09371, allocations: 20 kB / 362.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.544e-05/0.0938, allocations: 71.73 kB / 362.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.595e-05/0.09388, allocations: 65.58 kB / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002386/0.09412, allocations: 235.6 kB / 362.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.09414, allocations: 0 / 362.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.09415, allocations: 3.984 kB / 362.7 MB, free: 9.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.09416, allocations: 4 kB / 362.7 MB, free: 9.305 MB / 302.1 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.001031/0.09519, allocations: 0.5848 MB / 363.3 MB, free: 8.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.09524, allocations: 8.031 kB / 363.3 MB, free: 8.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.979e-05/0.09532, allocations: 39.62 kB / 363.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.09566, allocations: 272.1 kB / 363.6 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.09586, allocations: 145.7 kB / 363.8 MB, free: 8.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.271e-05/0.09593, allocations: 28 kB / 363.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.09704, allocations: 0.5782 MB / 364.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.09707, allocations: 7.984 kB / 364.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.09711, allocations: 8 kB / 364.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.09713, allocations: 12 kB / 364.4 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.09841, allocations: 0.5308 MB / 364.9 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001503/0.09992, allocations: 1.018 MB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/0.1014, allocations: 0.5108 MB / 366.5 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005673/0.102, allocations: 271.8 kB / 366.7 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.525e-05/0.102, allocations: 8.328 kB / 366.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.1021, allocations: 50.62 kB / 366.8 MB, free: 4.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.803e-06/0.1021, allocations: 0 / 366.8 MB, free: 4.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2164/0.3185, allocations: 6.744 MB / 373.5 MB, free: 19.94 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.418e-05/0.3186, allocations: 149.3 kB / 373.7 MB, free: 19.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.3189, allocations: 202.1 kB / 373.9 MB, free: 19.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.289e-05/0.3189, allocations: 37.67 kB / 373.9 MB, free: 19.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.543e-05/0.319, allocations: 142.8 kB / 374 MB, free: 19.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.3192, allocations: 193.9 kB / 374.2 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.22e-05/0.3193, allocations: 12.72 kB / 374.3 MB, free: 19.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.219e-05/0.3194, allocations: 349.5 kB / 374.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001479/0.3209, allocations: 0.6487 MB / 375.2 MB, free: 19.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/0.3224, allocations: 0.8354 MB / 376.1 MB, free: 18.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001362/0.3238, allocations: 0.5993 MB / 376.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.3238, allocations: 6.812 kB / 376.7 MB, free: 18.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003178/0.327, allocations: 1.464 MB / 378.1 MB, free: 17.76 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.327, allocations: 6.844 kB / 378.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.3271, allocations: 7.188 kB / 378.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.3271, allocations: 11.53 kB / 378.2 MB, free: 17.76 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/0.3283, allocations: 226.4 kB / 378.4 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.3283, allocations: 13.64 kB / 378.4 MB, free: 17.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008303/0.3292, allocations: 128.4 kB / 378.5 MB, free: 17.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.798e-05/0.3293, allocations: 27.45 kB / 378.6 MB, free: 17.71 MB / 302.1 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.0002722/0.3295, allocations: 190 kB / 378.7 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002692/0.3298, allocations: 148.4 kB / 378.9 MB, free: 17.47 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001516/0.33, allocations: 60.22 kB / 378.9 MB, free: 17.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.367e-06/0.33, allocations: 11.67 kB / 379 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.33, allocations: 1.469 kB / 379 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.33, allocations: 4.703 kB / 379 MB, free: 17.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.3344, allocations: 2.298 MB / 381.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/0.3344, allocations: 14.72 kB / 381.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007322/0.3352, allocations: 203.4 kB / 381.5 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.901e-05/0.3352, allocations: 15.06 kB / 381.5 MB, free: 16.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.929e-05/0.3353, allocations: 23.66 kB / 381.5 MB, free: 16.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.065e-05/0.3353, allocations: 29.3 kB / 381.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.117e-05/0.3353, allocations: 16.28 kB / 381.6 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002939/0.3382, allocations: 1.657 MB / 383.2 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001713/0.3384, allocations: 160.8 kB / 383.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.053e-05/0.3385, allocations: 31.09 kB / 383.4 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000545/0.3391, allocations: 95.72 kB / 383.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.3392, allocations: 103 kB / 383.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.736e-05/0.3393, allocations: 30.02 kB / 383.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001087/0.3394, allocations: 138 kB / 383.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3394, allocations: 0 / 383.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006777/0.3401, allocations: 130.6 kB / 383.9 MB, free: 14.93 MB / 302.1 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.0001199/0.3402, allocations: 142.5 kB / 384 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002639/0.3429, allocations: 1.186 MB / 385.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3429, allocations: 1.625 kB / 385.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009288/0.3438, allocations: 381.8 kB / 385.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007781/0.3446, allocations: 136.8 kB / 385.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.3466, allocations: 1.327 MB / 387 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002674/0.3469, allocations: 0.817 MB / 387.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005815/0.3475, allocations: 99.81 kB / 388 MB, free: 12.47 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002684/0.3478, allocations: 37.05 kB / 388 MB, free: 12.46 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3478, allocations: 5.031 kB / 388 MB, free: 12.46 MB / 302.1 MB Notification: Performance of Templates: time 0.01046/0.3582, allocations: 7.292 MB / 395.3 MB, free: 9.102 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,gain.k,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.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,subSample1.factor,super.factor,super.inferFactor,time