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.001623/0.001623, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001971/0.001971, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.88 kB / 358.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2978, allocations: 50.53 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003679/0.3015, allocations: 2.364 MB / 411.6 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00162/0.3031, allocations: 0.8338 MB / 412.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.3033, allocations: 7.938 kB / 412.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003195/0.3037, allocations: 51.58 kB / 412.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.3039, allocations: 63.55 kB / 412.5 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005678/0.3045, allocations: 175.6 kB / 412.7 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004037/0.3049, allocations: 379.5 kB / 413.1 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.3052, allocations: 111.8 kB / 413.2 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.3055, allocations: 155.5 kB / 413.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002522/0.3057, allocations: 187.2 kB / 413.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.047e-05/0.3058, allocations: 32 kB / 413.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.338e-05/0.3058, allocations: 36 kB / 413.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.306, allocations: 95.77 kB / 413.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.3061, allocations: 143.2 kB / 413.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004239/0.3065, allocations: 342.4 kB / 414.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3066, allocations: 0 / 414.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3066, allocations: 0 / 414.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.3066, allocations: 0 / 414.2 MB, free: 12.65 MB / 334.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.001169/0.3077, allocations: 0.6236 MB / 414.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3078, allocations: 8.031 kB / 414.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.523e-05/0.3079, allocations: 44.7 kB / 414.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.3083, allocations: 284.3 kB / 415.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.3085, allocations: 146.2 kB / 415.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.715e-05/0.3086, allocations: 28.38 kB / 415.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001155/0.3097, allocations: 0.5661 MB / 415.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.3098, allocations: 0 / 415.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.3098, allocations: 12 kB / 415.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.676e-06/0.3098, allocations: 4 kB / 415.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001308/0.3111, allocations: 0.5113 MB / 416.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.3127, allocations: 1.01 MB / 417.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.3143, allocations: 0.5065 MB / 417.9 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005949/0.3149, allocations: 271.3 kB / 418.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.344e-05/0.3149, allocations: 8 kB / 418.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.315, allocations: 38.56 kB / 418.2 MB, free: 8.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.944e-06/0.315, allocations: 0 / 418.2 MB, free: 8.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03643/0.3514, allocations: 5.73 MB / 423.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.3516, allocations: 145 kB / 424.1 MB, free: 2.434 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002425/0.3518, allocations: 201.1 kB / 424.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.886e-05/0.3519, allocations: 41.7 kB / 424.3 MB, free: 2.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.692e-05/0.352, allocations: 141.8 kB / 424.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/0.3522, allocations: 198.3 kB / 424.6 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003104/0.3525, allocations: 114.6 kB / 424.8 MB, free: 1.723 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3527, allocations: 342.8 kB / 425.1 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.3542, allocations: 0.6149 MB / 425.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001646/0.3558, allocations: 0.8002 MB / 426.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002959/0.3588, allocations: 1.247 MB / 427.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.3588, allocations: 4 kB / 427.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003567/0.3624, allocations: 1.394 MB / 429.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.3624, allocations: 10.81 kB / 429.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/0.3625, allocations: 8 kB / 429.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.02e-05/0.3625, allocations: 12.31 kB / 429.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.3638, allocations: 211.7 kB / 429.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.897e-05/0.3638, allocations: 15.98 kB / 429.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008923/0.3647, allocations: 99.78 kB / 429.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.221e-05/0.3648, allocations: 31.92 kB / 429.5 MB, free: 12.78 MB / 350.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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000343/0.3651, allocations: 189.5 kB / 429.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003239/0.3655, allocations: 157.3 kB / 429.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001879/0.3657, allocations: 59.3 kB / 429.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.3657, allocations: 8 kB / 429.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/0.3657, allocations: 4 kB / 429.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.3657, allocations: 3.984 kB / 429.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/0.3703, allocations: 2.168 MB / 432.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.3703, allocations: 15.98 kB / 432.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007241/0.3711, allocations: 183.8 kB / 432.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.968e-05/0.3711, allocations: 12 kB / 432.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.868e-05/0.3712, allocations: 24 kB / 432.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.615e-05/0.3712, allocations: 23.92 kB / 432.4 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.927e-06/0.3712, allocations: 11.94 kB / 432.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003034/0.3742, allocations: 1.565 MB / 433.9 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/0.3745, allocations: 160.8 kB / 434.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.132e-05/0.3745, allocations: 27.98 kB / 434.1 MB, free: 7.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005674/0.3751, allocations: 79.98 kB / 434.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/0.3753, allocations: 99.66 kB / 434.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.523e-05/0.3754, allocations: 28 kB / 434.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.3755, allocations: 140.1 kB / 434.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3755, allocations: 0 / 434.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006545/0.3762, allocations: 124 kB / 434.6 MB, free: 7.348 MB / 350.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001924/0.3764, allocations: 134.9 kB / 434.7 MB, free: 7.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.3791, allocations: 1.136 MB / 435.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3791, allocations: 0 / 435.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000962/0.3801, allocations: 350 kB / 436.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009196/0.381, allocations: 136.8 kB / 436.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.3833, allocations: 1.172 MB / 437.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.3837, allocations: 0.8129 MB / 438.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004708/0.3841, allocations: 95.33 kB / 438.4 MB, free: 3.324 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002913/0.3844, allocations: 43.42 kB / 438.4 MB, free: 3.285 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3844, allocations: 3.938 kB / 438.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of Templates: time 0.01312/0.3976, allocations: 8.312 MB / 446.8 MB, free: 10.98 MB / 366.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) Reference file matches