Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001104/0.001104, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3003, allocations: 50.54 MB / 409.2 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003695/0.304, allocations: 2.326 MB / 411.6 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001398/0.3054, allocations: 0.795 MB / 412.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001415/0.3056, allocations: 7.938 kB / 412.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.3059, allocations: 55.56 kB / 412.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001809/0.3061, allocations: 63.56 kB / 412.5 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000452/0.3066, allocations: 167.3 kB / 412.6 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003711/0.3069, allocations: 375.5 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.3072, allocations: 95.38 kB / 413.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002946/0.3075, allocations: 167.5 kB / 413.3 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002513/0.3077, allocations: 179.2 kB / 413.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.416e-05/0.3078, allocations: 32 kB / 413.5 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.04e-05/0.3078, allocations: 36 kB / 413.5 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.308, allocations: 95.7 kB / 413.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.3081, allocations: 139.3 kB / 413.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003371/0.3084, allocations: 328 kB / 414.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3084, allocations: 0 / 414.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3084, allocations: 0 / 414.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.3085, allocations: 0 / 414.1 MB, free: 12.72 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001157/0.3096, allocations: 0.6084 MB / 414.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.3097, allocations: 12.03 kB / 414.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.027e-05/0.3098, allocations: 36.66 kB / 414.7 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003666/0.3101, allocations: 271.6 kB / 415 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.3103, allocations: 134.2 kB / 415.1 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.738e-05/0.3104, allocations: 40.28 kB / 415.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.3115, allocations: 0.5416 MB / 415.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.3116, allocations: 3.984 kB / 415.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.802e-05/0.3116, allocations: 16 kB / 415.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.3116, allocations: 4 kB / 415.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001338/0.313, allocations: 0.5035 MB / 416.2 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001421/0.3144, allocations: 1.01 MB / 417.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001592/0.316, allocations: 0.5063 MB / 417.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006093/0.3166, allocations: 255.4 kB / 418 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.311e-05/0.3167, allocations: 16.12 kB / 418 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.3167, allocations: 46.5 kB / 418 MB, free: 8.465 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 3.357e-06/0.3168, allocations: 3.984 kB / 418 MB, free: 8.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03884/0.3556, allocations: 5.706 MB / 423.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.709e-05/0.3557, allocations: 157.2 kB / 423.9 MB, free: 2.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002012/0.3559, allocations: 194.6 kB / 424.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.257e-05/0.356, allocations: 33.7 kB / 424.1 MB, free: 2.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.879e-05/0.3561, allocations: 145.5 kB / 424.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.3563, allocations: 201.2 kB / 424.5 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002703/0.3566, allocations: 106.7 kB / 424.6 MB, free: 1.867 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3568, allocations: 342.8 kB / 424.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001539/0.3583, allocations: 0.6149 MB / 425.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.36, allocations: 0.8041 MB / 426.3 MB, free: 28 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/0.363, allocations: 1.247 MB / 427.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.363, allocations: 0 / 427.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003534/0.3665, allocations: 1.398 MB / 429 MB, free: 13.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.3666, allocations: 12.03 kB / 429 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.3666, allocations: 4 kB / 429 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/0.3666, allocations: 8 kB / 429 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.3679, allocations: 207.7 kB / 429.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.608e-05/0.368, allocations: 11.94 kB / 429.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009324/0.3689, allocations: 107.7 kB / 429.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.51e-05/0.369, allocations: 24 kB / 429.3 MB, free: 12.93 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.0003147/0.3693, allocations: 189.5 kB / 429.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002823/0.3696, allocations: 157.1 kB / 429.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.3698, allocations: 63.3 kB / 429.7 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.3698, allocations: 8 kB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.3698, allocations: 0 / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3699, allocations: 3.984 kB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004662/0.3745, allocations: 2.168 MB / 431.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.296e-05/0.3746, allocations: 12 kB / 431.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007371/0.3753, allocations: 183.7 kB / 432.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.296e-05/0.3753, allocations: 12 kB / 432.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.604e-05/0.3754, allocations: 28 kB / 432.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.735e-05/0.3754, allocations: 27.86 kB / 432.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.357e-06/0.3754, allocations: 20.19 kB / 432.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/0.3785, allocations: 1.545 MB / 433.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.3786, allocations: 164.6 kB / 433.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.721e-05/0.3787, allocations: 24.06 kB / 433.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005729/0.3793, allocations: 83.91 kB / 434 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.3795, allocations: 91.67 kB / 434.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.357e-05/0.3796, allocations: 28 kB / 434.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001147/0.3797, allocations: 144.2 kB / 434.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.816e-06/0.3797, allocations: 0 / 434.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006339/0.3803, allocations: 131.9 kB / 434.4 MB, free: 7.5 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.0001606/0.3805, allocations: 135 kB / 434.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002763/0.3833, allocations: 1.14 MB / 435.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.3833, allocations: 4 kB / 435.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001005/0.3843, allocations: 338.4 kB / 436 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009083/0.3852, allocations: 136.3 kB / 436.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002242/0.3875, allocations: 1.162 MB / 437.3 MB, free: 4.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003664/0.3878, allocations: 0.8129 MB / 438.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000452/0.3883, allocations: 91.31 kB / 438.2 MB, free: 3.496 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.3886, allocations: 43.42 kB / 438.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3886, allocations: 0 / 438.2 MB, free: 3.453 MB / 350.1 MB Notification: Performance of Templates: time 0.01241/0.401, allocations: 8.267 MB / 446.5 MB, free: 11.2 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches