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.001342/0.001342, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001566/0.001566, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 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 1.029/1.029, allocations: 177 MB / 205.1 MB, free: 5.496 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.443e-06/1.443e-06, allocations: 0 / 273.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.145e-05/2.289e-05, allocations: 2.312 kB / 273.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.006456/0.006479, allocations: 2.325 MB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004442/0.01092, allocations: 0.7908 MB / 276.4 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001843/0.0111, allocations: 4 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000288/0.01139, allocations: 55.56 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.0116, allocations: 59.44 kB / 276.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004276/0.01203, allocations: 167.6 kB / 276.7 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003808/0.01241, allocations: 387.4 kB / 277.1 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.01258, allocations: 75.83 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003761/0.01296, allocations: 223.5 kB / 277.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.01315, allocations: 135.7 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.02e-05/0.01321, allocations: 35.94 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.63e-05/0.01325, allocations: 36 kB / 277.6 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.537e-05/0.01335, allocations: 107.7 kB / 277.7 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.988e-05/0.01344, allocations: 95.78 kB / 277.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003365/0.0168, allocations: 259 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.01681, allocations: 0 / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.01681, allocations: 0 / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.01681, allocations: 0 / 278 MB, free: 12.52 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.0008591/0.01767, allocations: 0.6365 MB / 278.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.01771, allocations: 11.98 kB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.693e-05/0.01781, allocations: 68.75 kB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.01807, allocations: 208.6 kB / 278.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.01827, allocations: 339.9 kB / 279.3 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.84e-05/0.01832, allocations: 40.27 kB / 279.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000737/0.01906, allocations: 418.5 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.01908, allocations: 7.938 kB / 279.7 MB, free: 10.65 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.514e-05/0.0191, allocations: 8 kB / 279.7 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.699e-06/0.01911, allocations: 12 kB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003271/0.02238, allocations: 199 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00104/0.02342, allocations: 0.8983 MB / 280.8 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005918/0.02401, allocations: 316.8 kB / 281.1 MB, free: 9.125 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.02414, allocations: 122.8 kB / 281.3 MB, free: 8.988 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.02417, allocations: 15.94 kB / 281.3 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.763e-05/0.0242, allocations: 53.27 kB / 281.3 MB, free: 8.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 3.066e-06/0.0242, allocations: 7.984 kB / 281.3 MB, free: 8.902 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.008442/0.03264, allocations: 2.382 MB / 283.7 MB, free: 6.516 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.287e-05/0.03272, allocations: 157.3 kB / 283.9 MB, free: 6.332 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001694/0.03289, allocations: 237.8 kB / 284.1 MB, free: 6.082 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.183e-05/0.03296, allocations: 33.7 kB / 284.1 MB, free: 6.043 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.117e-05/0.03305, allocations: 200.5 kB / 284.3 MB, free: 5.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.0332, allocations: 198.2 kB / 284.5 MB, free: 5.645 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002386/0.03344, allocations: 95.95 kB / 284.6 MB, free: 5.543 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.03359, allocations: 0.5156 MB / 285.1 MB, free: 5.016 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003771/0.03396, allocations: 253.2 kB / 285.4 MB, free: 4.77 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000442/0.03441, allocations: 364 kB / 285.7 MB, free: 4.371 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007335/0.03514, allocations: 0.5419 MB / 286.3 MB, free: 3.793 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.03514, allocations: 0 / 286.3 MB, free: 3.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001173/0.03631, allocations: 0.6574 MB / 286.9 MB, free: 3.129 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.03633, allocations: 8 kB / 287 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.03634, allocations: 0 / 287 MB, free: 3.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.03636, allocations: 4 kB / 287 MB, free: 3.117 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007459/0.03711, allocations: 168 kB / 287.1 MB, free: 2.953 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.03711, allocations: 7.984 kB / 287.1 MB, free: 2.945 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004702/0.03759, allocations: 67.92 kB / 287.2 MB, free: 2.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.077e-05/0.03765, allocations: 19.98 kB / 287.2 MB, free: 2.859 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.0002099/0.03786, allocations: 196.3 kB / 287.4 MB, free: 2.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002662/0.03812, allocations: 145.4 kB / 287.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.902e-05/0.03822, allocations: 63.31 kB / 287.6 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.796e-06/0.03823, allocations: 15.98 kB / 287.6 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.03823, allocations: 0 / 287.6 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.03824, allocations: 0 / 287.6 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.0405, allocations: 1.453 MB / 289.1 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.04051, allocations: 11.94 kB / 289.1 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004664/0.04098, allocations: 175.9 kB / 289.3 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.356e-05/0.04099, allocations: 16 kB / 289.3 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.825e-05/0.04103, allocations: 20 kB / 289.3 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.435e-05/0.04105, allocations: 23.92 kB / 289.3 MB, free: 0.5273 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/0.04106, allocations: 15.94 kB / 289.3 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009534/0.04201, allocations: 1.065 MB / 290.4 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001467/0.04216, allocations: 83.67 kB / 290.5 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.04221, allocations: 27.98 kB / 290.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003747/0.04258, allocations: 55.95 kB / 290.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/0.04273, allocations: 87.64 kB / 290.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.189e-05/0.04277, allocations: 35.97 kB / 290.7 MB, free: 14.95 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.324e-05/0.04286, allocations: 176.1 kB / 290.9 MB, free: 14.78 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04286, allocations: 0 / 290.9 MB, free: 14.78 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005548/0.04341, allocations: 116 kB / 291 MB, free: 14.66 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.0001479/0.04356, allocations: 131 kB / 291.1 MB, free: 14.53 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007859/0.04435, allocations: 0.4962 MB / 291.6 MB, free: 14.03 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.04435, allocations: 4 kB / 291.6 MB, free: 14.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.0446, allocations: 158.6 kB / 291.8 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007743/0.04537, allocations: 143.6 kB / 291.9 MB, free: 13.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.04698, allocations: 1.108 MB / 293 MB, free: 12.4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000119/0.04709, allocations: 130.7 kB / 293.1 MB, free: 12.25 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003613/0.04746, allocations: 79.2 kB / 293.2 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004966/0.04795, allocations: 134.2 kB / 293.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.04795, allocations: 0 / 293.3 MB, free: 12.05 MB / 282.7 MB Notification: Performance of Templates: time 0.01323/0.06118, allocations: 9.32 MB / 302.7 MB, free: 2.766 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: 2.970927462913096]