Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 107.1 kB / 20.44 MB, free: 1.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002142/0.002142, allocations: 215.1 kB / 23.73 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001634/0.001634, allocations: 51.92 kB / 378.2 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3358/0.3374, allocations: 53.36 MB / 431.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004267/0.3417, allocations: 2.246 MB / 433.8 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.3435, allocations: 0.7716 MB / 434.6 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001703/0.3436, allocations: 4 kB / 434.6 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003292/0.344, allocations: 43.58 kB / 434.6 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002144/0.3442, allocations: 67.56 kB / 434.7 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005445/0.3447, allocations: 174.7 kB / 434.9 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005141/0.3452, allocations: 379.6 kB / 435.2 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.3455, allocations: 71.59 kB / 435.3 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003933/0.3459, allocations: 167.5 kB / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.3462, allocations: 183.3 kB / 435.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.405e-05/0.3462, allocations: 36 kB / 435.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.858e-05/0.3463, allocations: 32 kB / 435.7 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.3465, allocations: 99.72 kB / 435.8 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001553/0.3466, allocations: 119.4 kB / 435.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005481/0.3472, allocations: 333.1 kB / 436.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.722e-06/0.3472, allocations: 4 kB / 436.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3472, allocations: 3.938 kB / 436.3 MB, free: 2.039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.3472, allocations: 0 / 436.3 MB, free: 2.039 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.00152/0.3487, allocations: 0.5483 MB / 436.8 MB, free: 1.461 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.3488, allocations: 8.031 kB / 436.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.3489, allocations: 36.75 kB / 436.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.3494, allocations: 214.6 kB / 437.1 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004436/0.3499, allocations: 343.9 kB / 437.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.139e-05/0.3499, allocations: 36.33 kB / 437.4 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3513, allocations: 0.5521 MB / 438 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/0.3513, allocations: 4 kB / 438 MB, free: 164 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.929e-05/0.3514, allocations: 11.98 kB / 438 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.3514, allocations: 11.94 kB / 438 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.3528, allocations: 0.5159 MB / 438.5 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.3546, allocations: 0.8483 MB / 439.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.3561, allocations: 470.2 kB / 439.8 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006498/0.3567, allocations: 239.3 kB / 440.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.653e-05/0.3568, allocations: 8 kB / 440.1 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.3568, allocations: 38.56 kB / 440.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.3568, allocations: 0 / 440.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04002/0.3969, allocations: 5.741 MB / 445.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.397, allocations: 152.9 kB / 446 MB, free: 7.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002578/0.3972, allocations: 207.1 kB / 446.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-05/0.3973, allocations: 41.7 kB / 446.2 MB, free: 7.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.3975, allocations: 145.7 kB / 446.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000248/0.3977, allocations: 206.3 kB / 446.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003381/0.398, allocations: 110.7 kB / 446.7 MB, free: 7.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.3983, allocations: 342.8 kB / 447 MB, free: 6.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/0.3998, allocations: 0.6227 MB / 447.6 MB, free: 6.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001709/0.4015, allocations: 0.8042 MB / 448.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003066/0.4046, allocations: 1.26 MB / 449.7 MB, free: 4.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4046, allocations: 8 kB / 449.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003765/0.4084, allocations: 1.407 MB / 451.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.4084, allocations: 8 kB / 451.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.4084, allocations: 4 kB / 451.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.763e-05/0.4084, allocations: 12 kB / 451.1 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.4099, allocations: 215.6 kB / 451.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.4099, allocations: 11.94 kB / 451.4 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.411, allocations: 111.8 kB / 451.5 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.302e-05/0.4111, allocations: 24 kB / 451.5 MB, free: 2.285 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.000352/0.4114, allocations: 182 kB / 451.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000325/0.4118, allocations: 149.4 kB / 451.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001662/0.4119, allocations: 59.55 kB / 451.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.155e-05/0.4119, allocations: 11.98 kB / 451.9 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.526e-05/0.412, allocations: 15.92 kB / 451.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.412, allocations: 0 / 451.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005116/0.4171, allocations: 1.914 MB / 453.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.475e-05/0.4171, allocations: 8 kB / 453.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007758/0.4179, allocations: 179.7 kB / 454 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-05/0.4179, allocations: 20.45 kB / 454 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.346e-05/0.418, allocations: 27.94 kB / 454.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.491e-05/0.418, allocations: 19.94 kB / 454.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.208e-05/0.418, allocations: 15.94 kB / 454.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003343/0.4213, allocations: 1.573 MB / 455.7 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003006/0.4216, allocations: 83.73 kB / 455.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001128/0.4218, allocations: 31.94 kB / 455.8 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006806/0.4224, allocations: 83.97 kB / 455.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.4226, allocations: 99.64 kB / 456 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-05/0.4227, allocations: 28 kB / 456 MB, free: 13.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001497/0.4228, allocations: 152.2 kB / 456.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4228, allocations: 0 / 456.1 MB, free: 13.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006778/0.4235, allocations: 124 kB / 456.3 MB, free: 13.2 MB / 366.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * 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 (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.0001831/0.4237, allocations: 139.1 kB / 456.4 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002786/0.4265, allocations: 1.054 MB / 457.4 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.4265, allocations: 0 / 457.4 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.4277, allocations: 337.9 kB / 457.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008962/0.4286, allocations: 126.6 kB / 457.9 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/0.4312, allocations: 1.177 MB / 459.1 MB, free: 10.21 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.4315, allocations: 211.2 kB / 459.3 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004977/0.432, allocations: 99.31 kB / 459.4 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002987/0.4323, allocations: 39.42 kB / 459.4 MB, free: 9.848 MB / 366.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4323, allocations: 0 / 459.4 MB, free: 9.848 MB / 366.1 MB Notification: Performance of Templates: time 0.01726/0.4495, allocations: 9.328 MB / 468.7 MB, free: 0.5898 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.059474846813828]