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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001027, allocations: 87.67 kB / 21.19 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0011/0.0011, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9912/0.9912, allocations: 177 MB / 204.8 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] 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=8007,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=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 272.9 MB, free: 1.5 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.478e-05/2.654e-05, allocations: 9.203 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00292/0.002947, allocations: 2.35 MB / 275.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.004236, allocations: 0.787 MB / 276 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.004412, allocations: 7.938 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003067/0.004718, allocations: 47.62 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002102/0.004929, allocations: 67.38 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004736/0.005402, allocations: 175.5 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003945/0.005797, allocations: 379.5 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.005978, allocations: 71.84 kB / 276.8 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003755/0.006353, allocations: 223.5 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001958/0.006549, allocations: 143.6 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.681e-05/0.006596, allocations: 36 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.919e-05/0.006635, allocations: 32 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.189e-05/0.006727, allocations: 99.69 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.847e-05/0.006815, allocations: 103.7 kB / 277.4 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002937/0.007109, allocations: 251.1 kB / 277.6 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.007113, allocations: 4 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.007115, allocations: 3.938 kB / 277.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.007121, allocations: 0 / 277.6 MB, free: 12.72 MB / 266.7 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.0009203/0.008042, allocations: 0.6287 MB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.008095, allocations: 15.98 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.00821, allocations: 64.75 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.008541, allocations: 212.6 kB / 278.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000215/0.008756, allocations: 339.9 kB / 278.9 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.008804, allocations: 36.31 kB / 278.9 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006498/0.009454, allocations: 454.6 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.009471, allocations: 3.938 kB / 279.4 MB, free: 10.82 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.754e-05/0.009499, allocations: 15.94 kB / 279.4 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.451e-05/0.009513, allocations: 8 kB / 279.4 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004115/0.009925, allocations: 240.4 kB / 279.6 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001063/0.01099, allocations: 0.9368 MB / 280.6 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006385/0.01163, allocations: 340.6 kB / 280.9 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000176/0.0118, allocations: 146.7 kB / 281 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.003e-05/0.01184, allocations: 15.98 kB / 281 MB, free: 9.004 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/0.01187, allocations: 41.39 kB / 281.1 MB, free: 8.953 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 4.108e-06/0.01187, allocations: 3.984 kB / 281.1 MB, free: 8.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.007171/0.01904, allocations: 2.62 MB / 283.7 MB, free: 6.324 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.625e-05/0.01913, allocations: 153.1 kB / 283.9 MB, free: 6.145 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002707/0.0194, allocations: 237.8 kB / 284.1 MB, free: 5.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.376e-05/0.01947, allocations: 33.7 kB / 284.1 MB, free: 5.855 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.436e-05/0.01955, allocations: 192.5 kB / 284.3 MB, free: 5.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.01969, allocations: 190.3 kB / 284.5 MB, free: 5.473 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001764/0.01986, allocations: 99.98 kB / 284.6 MB, free: 5.367 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.02, allocations: 0.5157 MB / 285.1 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004335/0.02043, allocations: 321.2 kB / 285.4 MB, free: 4.527 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/0.02089, allocations: 432 kB / 285.8 MB, free: 4.062 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007709/0.02166, allocations: 0.6435 MB / 286.5 MB, free: 3.383 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.02166, allocations: 3.938 kB / 286.5 MB, free: 3.379 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001035/0.0227, allocations: 0.7824 MB / 287.3 MB, free: 2.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.02272, allocations: 4 kB / 287.3 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.02273, allocations: 8.297 kB / 287.3 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.02275, allocations: 4 kB / 287.3 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007534/0.0235, allocations: 159.8 kB / 287.5 MB, free: 2.418 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.02351, allocations: 4 kB / 287.5 MB, free: 2.414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/0.02388, allocations: 80.12 kB / 287.5 MB, free: 2.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.02393, allocations: 19.98 kB / 287.6 MB, free: 2.316 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (67): * Single equations (assignments): 67 * 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.0002158/0.02415, allocations: 200.3 kB / 287.7 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.02438, allocations: 153.4 kB / 287.9 MB, free: 1.953 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.438e-05/0.02446, allocations: 59.31 kB / 288 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.02447, allocations: 8 kB / 288 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.02448, allocations: 8 kB / 288 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.02448, allocations: 3.984 kB / 288 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002014/0.0265, allocations: 1.519 MB / 289.5 MB, free: 144 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.0265, allocations: 8 kB / 289.5 MB, free: 136 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000382/0.02689, allocations: 167.7 kB / 289.7 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.261e-05/0.0269, allocations: 16.69 kB / 289.7 MB, free: 15.95 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.435e-05/0.02693, allocations: 24 kB / 289.7 MB, free: 15.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.23e-05/0.02695, allocations: 23.92 kB / 289.7 MB, free: 15.91 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/0.02695, allocations: 15.94 kB / 289.7 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001075/0.02803, allocations: 1.22 MB / 291 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.02816, allocations: 99.66 kB / 291.1 MB, free: 14.37 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.02821, allocations: 27.98 kB / 291.1 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000257/0.02847, allocations: 59.95 kB / 291.1 MB, free: 14.28 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001361/0.0286, allocations: 87.58 kB / 291.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.139e-05/0.02864, allocations: 35.98 kB / 291.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.689e-05/0.02872, allocations: 172.2 kB / 291.4 MB, free: 13.99 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02872, allocations: 0 / 291.4 MB, free: 13.99 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000409/0.02913, allocations: 112 kB / 291.5 MB, free: 13.88 MB / 282.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 () * 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.0001367/0.02927, allocations: 139 kB / 291.7 MB, free: 13.74 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008022/0.03007, allocations: 0.5819 MB / 292.3 MB, free: 13.15 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.421e-06/0.03008, allocations: 0 / 292.3 MB, free: 13.15 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002248/0.0303, allocations: 167.2 kB / 292.4 MB, free: 12.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000609/0.03091, allocations: 151.2 kB / 292.6 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.03244, allocations: 1.123 MB / 293.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001021/0.03254, allocations: 130.8 kB / 293.8 MB, free: 11.35 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002829/0.03282, allocations: 83.19 kB / 293.9 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002078/0.03303, allocations: 44.48 kB / 294 MB, free: 11.23 MB / 282.7 MB Notification: Performance of SimCode: time 2.315e-06/0.03303, allocations: 0 / 294 MB, free: 11.23 MB / 282.7 MB Notification: Performance of Templates: time 0.01132/0.04435, allocations: 9.194 MB / 303.1 MB, free: 2.098 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.03477231785655]