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.00113/0.001131, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.764/1.764, allocations: 205.2 MB / 219 MB, free: 9.199 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008512/0.0008513, allocations: 101.9 kB / 267.1 MB, free: 9.27 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.09039/0.09039, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.482e-05/3.534e-05, allocations: 0 / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1246, allocations: 50.38 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.351/0.4756, allocations: 82.07 MB / 0.5063 GB, free: 11.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.476, allocations: 73.25 kB / 0.5063 GB, free: 11.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01771/0.4937, allocations: 7.049 MB / 0.5132 GB, free: 9.125 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4937, allocations: 0 / 0.5132 GB, free: 9.125 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.559e-05/0.4937, allocations: 3.844 kB / 0.5132 GB, free: 9.125 MB / 330.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.0009245/0.4947, allocations: 0.5816 MB / 0.5138 GB, free: 8.652 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.4947, allocations: 11.12 kB / 0.5138 GB, free: 8.652 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.778e-05/0.4948, allocations: 42.25 kB / 0.5139 GB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003198/0.4951, allocations: 259.8 kB / 0.5141 GB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.4953, allocations: 147.4 kB / 0.5142 GB, free: 8.281 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.678e-05/0.4954, allocations: 40.83 kB / 0.5143 GB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007466/0.4962, allocations: 0.5086 MB / 0.5148 GB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.4962, allocations: 0 / 0.5148 GB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.4962, allocations: 13.66 kB / 0.5148 GB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.4963, allocations: 7.688 kB / 0.5148 GB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005561/0.4968, allocations: 416.4 kB / 0.5152 GB, free: 8.043 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.4981, allocations: 1.011 MB / 0.5162 GB, free: 7.336 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007958/0.4989, allocations: 427 kB / 0.5166 GB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002448/0.4991, allocations: 209.7 kB / 0.5168 GB, free: 7.156 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.7e-05/0.4992, allocations: 7.688 kB / 0.5168 GB, free: 7.156 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.705e-05/0.4992, allocations: 42.19 kB / 0.5168 GB, free: 7.109 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 1.503e-06/0.4992, allocations: 3.969 kB / 0.5168 GB, free: 7.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.006995/0.5062, allocations: 2.081 MB / 0.5189 GB, free: 6.297 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.728e-05/0.5063, allocations: 152.1 kB / 0.519 GB, free: 6.125 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.5065, allocations: 180.7 kB / 0.5192 GB, free: 5.961 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.091e-05/0.5066, allocations: 40.27 kB / 0.5192 GB, free: 5.926 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.914e-05/0.5067, allocations: 140.4 kB / 0.5194 GB, free: 5.797 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001533/0.5068, allocations: 193.6 kB / 0.5195 GB, free: 5.641 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.197e-05/0.5069, allocations: 14.81 kB / 0.5196 GB, free: 5.637 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.312e-05/0.507, allocations: 349.2 kB / 0.5199 GB, free: 5.301 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006346/0.5076, allocations: 478.9 kB / 0.5204 GB, free: 5.074 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007036/0.5083, allocations: 0.6467 MB / 0.521 GB, free: 4.605 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000615/0.5089, allocations: 429 kB / 0.5214 GB, free: 4.371 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.509, allocations: 4 kB / 0.5214 GB, free: 4.367 MB / 330.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001558/0.5105, allocations: 1.098 MB / 0.5225 GB, free: 3.703 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.5106, allocations: 8 kB / 0.5225 GB, free: 3.695 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.5106, allocations: 8.812 kB / 0.5225 GB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.869e-05/0.5106, allocations: 15.92 kB / 0.5225 GB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00128/0.5119, allocations: 235.1 kB / 0.5227 GB, free: 3.449 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.5119, allocations: 11.95 kB / 0.5227 GB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009875/0.5129, allocations: 127.5 kB / 0.5229 GB, free: 3.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.552e-05/0.513, allocations: 27.69 kB / 0.5229 GB, free: 3.301 MB / 330.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.0001933/0.5132, allocations: 156.7 kB / 0.523 GB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002632/0.5135, allocations: 152.3 kB / 0.5232 GB, free: 3.031 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001694/0.5137, allocations: 56.84 kB / 0.5232 GB, free: 3.023 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.5137, allocations: 8 kB / 0.5232 GB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.5137, allocations: 0 / 0.5232 GB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.5137, allocations: 11.94 kB / 0.5233 GB, free: 3.004 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00321/0.5169, allocations: 2.013 MB / 0.5252 GB, free: 1.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.5169, allocations: 12.19 kB / 0.5252 GB, free: 1.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007477/0.5177, allocations: 204.3 kB / 0.5254 GB, free: 1.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-05/0.5177, allocations: 19.94 kB / 0.5254 GB, free: 1 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-05/0.5178, allocations: 27.56 kB / 0.5255 GB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-05/0.5178, allocations: 23.92 kB / 0.5255 GB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/0.5178, allocations: 15.94 kB / 0.5255 GB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.5196, allocations: 1.758 MB / 0.5272 GB, free: 15.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002168/0.5198, allocations: 166.2 kB / 0.5274 GB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.432e-05/0.5199, allocations: 24.56 kB / 0.5274 GB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006604/0.5206, allocations: 100.7 kB / 0.5275 GB, free: 14.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.5208, allocations: 103.7 kB / 0.5276 GB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.465e-05/0.5209, allocations: 34.55 kB / 0.5276 GB, free: 14.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001493/0.521, allocations: 146.6 kB / 0.5278 GB, free: 14.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.521, allocations: 0 / 0.5278 GB, free: 14.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007395/0.5218, allocations: 129 kB / 0.5279 GB, free: 14.5 MB / 346.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.0002074/0.522, allocations: 133.2 kB / 0.528 GB, free: 14.37 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001377/0.5234, allocations: 0.8634 MB / 0.5289 GB, free: 13.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.5234, allocations: 8.125 kB / 0.5289 GB, free: 13.87 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004366/0.5238, allocations: 235 kB / 0.5291 GB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/0.5245, allocations: 117.4 kB / 0.5292 GB, free: 13.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.5264, allocations: 0.9763 MB / 0.5302 GB, free: 12.61 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/0.5269, allocations: 0.8284 MB / 0.531 GB, free: 11.76 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005919/0.5275, allocations: 87.38 kB / 0.5311 GB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/0.5278, allocations: 39.42 kB / 0.5311 GB, free: 11.64 MB / 346.7 MB Notification: Performance of SimCode: time 4e-07/0.5278, allocations: 3.938 kB / 0.5311 GB, free: 11.63 MB / 346.7 MB Notification: Performance of Templates: time 0.01512/0.5429, allocations: 7.353 MB / 0.5383 GB, free: 4.297 MB / 346.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