Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 115.3 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 196 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.537/1.537, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009609/0.000961, allocations: 51.92 kB / 351.3 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3266, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003362/0.33, allocations: 2.328 MB / 403 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001403/0.3314, allocations: 0.7754 MB / 403.8 MB, free: 5.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.3316, allocations: 7.938 kB / 403.8 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003144/0.3319, allocations: 47.64 kB / 403.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001834/0.3321, allocations: 59.48 kB / 403.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004517/0.3326, allocations: 167.6 kB / 404.1 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.333, allocations: 371.6 kB / 404.4 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.3332, allocations: 99.31 kB / 404.5 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002079/0.3334, allocations: 155.5 kB / 404.7 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002517/0.3336, allocations: 179.3 kB / 404.9 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.735e-05/0.3337, allocations: 32 kB / 404.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.308e-05/0.3338, allocations: 32 kB / 404.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000117/0.3339, allocations: 87.8 kB / 405 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.334, allocations: 155.2 kB / 405.2 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003487/0.3344, allocations: 316.1 kB / 405.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3344, allocations: 4 kB / 405.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3344, allocations: 0 / 405.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.3344, allocations: 0 / 405.5 MB, free: 4.082 MB / 318.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.001127/0.3356, allocations: 0.6122 MB / 406.1 MB, free: 3.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.3356, allocations: 11.89 kB / 406.1 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.366e-05/0.3357, allocations: 44.56 kB / 406.1 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/0.3361, allocations: 264.4 kB / 406.4 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002877/0.3364, allocations: 142.2 kB / 406.5 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.932e-05/0.3365, allocations: 36.22 kB / 406.6 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.3376, allocations: 0.5338 MB / 407.1 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.3377, allocations: 7.938 kB / 407.1 MB, free: 2.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.418e-05/0.3377, allocations: 8 kB / 407.1 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.3377, allocations: 11.98 kB / 407.1 MB, free: 2.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001285/0.339, allocations: 0.5152 MB / 407.7 MB, free: 1.777 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001427/0.3404, allocations: 1.01 MB / 408.7 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00154/0.342, allocations: 0.4985 MB / 409.2 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006134/0.3426, allocations: 255.4 kB / 409.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.975e-05/0.3427, allocations: 8 kB / 409.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.3427, allocations: 46.48 kB / 409.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.723e-06/0.3427, allocations: 0 / 409.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03755/0.3803, allocations: 5.72 MB / 415.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.842e-05/0.3804, allocations: 152.9 kB / 415.3 MB, free: 9.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001978/0.3806, allocations: 191.2 kB / 415.5 MB, free: 9.715 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.563e-05/0.3807, allocations: 41.7 kB / 415.6 MB, free: 9.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.285e-05/0.3808, allocations: 141.4 kB / 415.7 MB, free: 9.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001918/0.381, allocations: 193.3 kB / 415.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002706/0.3813, allocations: 110.7 kB / 416 MB, free: 9.219 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.3814, allocations: 342.8 kB / 416.3 MB, free: 8.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.383, allocations: 0.6149 MB / 416.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.3847, allocations: 0.8041 MB / 417.8 MB, free: 7.379 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003034/0.3877, allocations: 1.244 MB / 419 MB, free: 6.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.149e-06/0.3877, allocations: 4 kB / 419 MB, free: 6.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003492/0.3912, allocations: 1.39 MB / 420.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.3913, allocations: 8 kB / 420.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3913, allocations: 12 kB / 420.4 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.611e-05/0.3913, allocations: 8 kB / 420.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.3927, allocations: 219.7 kB / 420.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.689e-05/0.3927, allocations: 11.94 kB / 420.6 MB, free: 4.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009472/0.3937, allocations: 103.7 kB / 420.7 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.806e-05/0.3937, allocations: 28 kB / 420.8 MB, free: 4.273 MB / 334.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.0003432/0.3941, allocations: 185.6 kB / 421 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002958/0.3944, allocations: 153.2 kB / 421.1 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001791/0.3946, allocations: 59.31 kB / 421.2 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.3946, allocations: 12.22 kB / 421.2 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.3946, allocations: 3.938 kB / 421.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3946, allocations: 7.984 kB / 421.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004677/0.3993, allocations: 2.168 MB / 423.4 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.3993, allocations: 8.188 kB / 423.4 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007517/0.4001, allocations: 191.7 kB / 423.5 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/0.4001, allocations: 12 kB / 423.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.612e-05/0.4002, allocations: 24 kB / 423.6 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.396e-05/0.4002, allocations: 15.94 kB / 423.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.097e-05/0.4002, allocations: 15.94 kB / 423.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003105/0.4033, allocations: 1.557 MB / 425.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.4035, allocations: 160.6 kB / 425.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7e-05/0.4036, allocations: 28 kB / 425.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00057/0.4042, allocations: 79.97 kB / 425.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.4044, allocations: 91.67 kB / 425.5 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-05/0.4044, allocations: 36 kB / 425.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000121/0.4046, allocations: 140.2 kB / 425.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4046, allocations: 0 / 425.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006484/0.4052, allocations: 124 kB / 425.8 MB, free: 14.86 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.0001704/0.4054, allocations: 138.9 kB / 425.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00278/0.4082, allocations: 1.136 MB / 427.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.974e-06/0.4082, allocations: 4.375 kB / 427.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.4092, allocations: 337.9 kB / 427.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008874/0.4101, allocations: 135.1 kB / 427.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.4125, allocations: 1.178 MB / 428.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.4128, allocations: 0.809 MB / 429.5 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004616/0.4133, allocations: 95.31 kB / 429.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.4136, allocations: 43.42 kB / 429.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of SimCode: time 3.546e-06/0.4136, allocations: 0 / 429.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of Templates: time 0.01362/0.4272, allocations: 8.263 MB / 437.9 MB, free: 2.543 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches