Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001173/0.001173, 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.001199/0.001199, allocations: 168.1 kB / 24.82 MB, free: 9.277 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.046/1.046, allocations: 177 MB / 205.1 MB, free: 5.473 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.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 273.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.342e-05/2.495e-05, allocations: 2.312 kB / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002962/0.002987, allocations: 2.378 MB / 275.7 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001276/0.004263, allocations: 0.8569 MB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001675/0.00443, allocations: 7.938 kB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003256/0.004756, allocations: 55.56 kB / 276.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.004957, allocations: 63.5 kB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/0.005424, allocations: 203.3 kB / 276.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.005777, allocations: 411.4 kB / 277.3 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.005932, allocations: 71.78 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003079/0.00624, allocations: 235.5 kB / 277.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.006411, allocations: 147.6 kB / 277.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.453e-05/0.006455, allocations: 36 kB / 277.7 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.889e-05/0.006494, allocations: 36 kB / 277.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.626e-05/0.00659, allocations: 119.6 kB / 277.9 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.042e-05/0.006671, allocations: 107.7 kB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002782/0.006949, allocations: 282.9 kB / 278.3 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.006952, allocations: 4 kB / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.006952, allocations: 0 / 278.3 MB, free: 12.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.006957, allocations: 0 / 278.3 MB, free: 12.25 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0008158/0.007772, allocations: 0.6945 MB / 279 MB, free: 11.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.007815, allocations: 15.98 kB / 279 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.657e-05/0.007901, allocations: 80.7 kB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.008159, allocations: 251.9 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.008351, allocations: 343.9 kB / 279.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.929e-05/0.0084, allocations: 28.38 kB / 279.7 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004925/0.008892, allocations: 432.7 kB / 280.1 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.008904, allocations: 4.188 kB / 280.1 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.234e-05/0.008927, allocations: 12.12 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.008934, allocations: 8 kB / 280.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000271/0.009205, allocations: 199 kB / 280.3 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000857/0.01006, allocations: 0.9179 MB / 281.2 MB, free: 9.078 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004916/0.01055, allocations: 312.8 kB / 281.5 MB, free: 8.723 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.01068, allocations: 130.7 kB / 281.7 MB, free: 8.578 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.61e-05/0.01073, allocations: 15.98 kB / 281.7 MB, free: 8.562 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.01076, allocations: 45.38 kB / 281.7 MB, free: 8.508 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.823e-06/0.01076, allocations: 0 / 281.7 MB, free: 8.508 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.00628/0.01704, allocations: 2.398 MB / 284.1 MB, free: 6.098 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.138e-05/0.01711, allocations: 149.3 kB / 284.3 MB, free: 5.922 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.01729, allocations: 300.1 kB / 284.6 MB, free: 5.613 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.187e-05/0.01734, allocations: 33.7 kB / 284.6 MB, free: 5.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.647e-05/0.01742, allocations: 204.4 kB / 284.8 MB, free: 5.367 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.01754, allocations: 194.3 kB / 285 MB, free: 5.176 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.01771, allocations: 107.8 kB / 285.1 MB, free: 5.062 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.01784, allocations: 0.5195 MB / 285.6 MB, free: 4.531 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002725/0.01811, allocations: 245.2 kB / 285.8 MB, free: 4.293 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000317/0.01843, allocations: 368 kB / 286.2 MB, free: 3.895 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005496/0.01898, allocations: 0.5497 MB / 286.8 MB, free: 3.309 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.01898, allocations: 0 / 286.8 MB, free: 3.309 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007734/0.01975, allocations: 0.6612 MB / 287.4 MB, free: 2.641 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.01977, allocations: 8 kB / 287.4 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.01978, allocations: 224 / 287.4 MB, free: 2.633 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.0198, allocations: 8 kB / 287.4 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005439/0.02034, allocations: 163.7 kB / 287.6 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.02035, allocations: 7.984 kB / 287.6 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003418/0.02069, allocations: 71.91 kB / 287.7 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.897e-05/0.02073, allocations: 16 kB / 287.7 MB, free: 2.371 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.0001891/0.02092, allocations: 192.4 kB / 287.9 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.02112, allocations: 149.4 kB / 288 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.468e-05/0.02121, allocations: 67.61 kB / 288.1 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/0.02121, allocations: 8 kB / 288.1 MB, free: 1.949 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.02122, allocations: 0 / 288.1 MB, free: 1.949 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.02122, allocations: 7.984 kB / 288.1 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.02297, allocations: 1.469 MB / 289.6 MB, free: 272 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.02298, allocations: 8 kB / 289.6 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003352/0.02332, allocations: 167.7 kB / 289.7 MB, free: 96 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.027e-05/0.02333, allocations: 16 kB / 289.8 MB, free: 80 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.02336, allocations: 20 kB / 289.8 MB, free: 60 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.337e-05/0.02337, allocations: 23.92 kB / 289.8 MB, free: 36 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/0.02338, allocations: 15.94 kB / 289.8 MB, free: 20 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007782/0.02416, allocations: 1.077 MB / 290.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001357/0.02429, allocations: 107.6 kB / 291 MB, free: 14.62 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.02433, allocations: 23.98 kB / 291 MB, free: 14.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.02458, allocations: 59.94 kB / 291.1 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.02469, allocations: 95.67 kB / 291.2 MB, free: 14.45 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.02471, allocations: 24 kB / 291.2 MB, free: 14.43 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.436e-05/0.0248, allocations: 193.1 kB / 291.4 MB, free: 14.24 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0248, allocations: 0 / 291.4 MB, free: 14.24 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003742/0.02517, allocations: 120 kB / 291.5 MB, free: 14.12 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.0001258/0.0253, allocations: 146.8 kB / 291.6 MB, free: 13.96 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000588/0.02589, allocations: 0.4921 MB / 292.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.02589, allocations: 0 / 292.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.02607, allocations: 166.8 kB / 292.3 MB, free: 13.3 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000606/0.02668, allocations: 152.7 kB / 292.5 MB, free: 13.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.02815, allocations: 1.171 MB / 293.6 MB, free: 11.77 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.02825, allocations: 134.8 kB / 293.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002874/0.02854, allocations: 83.22 kB / 293.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.02886, allocations: 146.2 kB / 294 MB, free: 11.39 MB / 282.7 MB Notification: Performance of SimCode: time 2.294e-06/0.02886, allocations: 0 / 294 MB, free: 11.39 MB / 282.7 MB Notification: Performance of Templates: time 0.01073/0.03959, allocations: 9.661 MB / 303.6 MB, free: 1.785 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.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.945102727971971]