Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001051/0.001051, allocations: 81.81 kB / 21.42 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.001491/0.001491, allocations: 164.5 kB / 24.82 MB, free: 9.281 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.032/1.032, 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.273e-06/1.273e-06, allocations: 0 / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.082e-05/1.209e-05, allocations: 6.312 kB / 273.3 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002454/0.002466, allocations: 2.353 MB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009865/0.003452, allocations: 0.818 MB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.003561, allocations: 7.938 kB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002032/0.003764, allocations: 59.55 kB / 276.5 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001383/0.003903, allocations: 51.56 kB / 276.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.004205, allocations: 187.4 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002683/0.004474, allocations: 387.5 kB / 277.2 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.004596, allocations: 76.25 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002582/0.004854, allocations: 239.4 kB / 277.5 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001462/0.005001, allocations: 143.6 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.717e-05/0.005038, allocations: 32 kB / 277.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.329e-05/0.005071, allocations: 40 kB / 277.7 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.245e-05/0.005154, allocations: 107.6 kB / 277.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.406e-05/0.005228, allocations: 103.8 kB / 277.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002069/0.005434, allocations: 251.1 kB / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.005436, allocations: 0 / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.005437, allocations: 0 / 278.1 MB, free: 12.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.095e-06/0.00544, allocations: 0 / 278.1 MB, free: 12.4 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0006314/0.006071, allocations: 0.652 MB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.006103, allocations: 15.98 kB / 278.8 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.618e-05/0.006179, allocations: 72.7 kB / 278.9 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.006376, allocations: 208.6 kB / 279.1 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.006541, allocations: 347.9 kB / 279.4 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.585e-05/0.006577, allocations: 28.38 kB / 279.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004502/0.007027, allocations: 428.6 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.007039, allocations: 12.16 kB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.12e-05/0.00706, allocations: 16.12 kB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.007068, allocations: 8 kB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000264/0.007332, allocations: 191.2 kB / 280.1 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007305/0.008062, allocations: 0.9022 MB / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004365/0.008499, allocations: 319.9 kB / 281.3 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.00862, allocations: 126.8 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.008653, allocations: 16.41 kB / 281.4 MB, free: 8.816 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.008675, allocations: 45.33 kB / 281.5 MB, free: 8.762 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.503e-06/0.008676, allocations: 0 / 281.5 MB, free: 8.762 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006106/0.01478, allocations: 2.39 MB / 283.9 MB, free: 6.367 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.136e-05/0.01484, allocations: 153.2 kB / 284 MB, free: 6.188 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.01497, allocations: 246.5 kB / 284.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.009e-05/0.01502, allocations: 41.7 kB / 284.3 MB, free: 5.879 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.076e-05/0.01509, allocations: 188.5 kB / 284.5 MB, free: 5.688 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.01521, allocations: 198.3 kB / 284.7 MB, free: 5.492 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.01537, allocations: 99.91 kB / 284.8 MB, free: 5.387 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.01549, allocations: 0.5117 MB / 285.3 MB, free: 4.863 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00027/0.01576, allocations: 249.2 kB / 285.5 MB, free: 4.621 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.01608, allocations: 360 kB / 285.9 MB, free: 4.23 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005446/0.01662, allocations: 0.5458 MB / 286.4 MB, free: 3.645 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.01663, allocations: 0 / 286.4 MB, free: 3.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007655/0.01739, allocations: 0.6574 MB / 287.1 MB, free: 2.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.0174, allocations: 8 kB / 287.1 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.01741, allocations: 0 / 287.1 MB, free: 2.973 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.01742, allocations: 12.22 kB / 287.1 MB, free: 2.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005337/0.01796, allocations: 163.7 kB / 287.3 MB, free: 2.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.01797, allocations: 15.92 kB / 287.3 MB, free: 2.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003415/0.01831, allocations: 71.84 kB / 287.3 MB, free: 2.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.167e-05/0.01835, allocations: 20 kB / 287.4 MB, free: 2.695 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.000163/0.01851, allocations: 188.8 kB / 287.6 MB, free: 2.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001896/0.0187, allocations: 161.2 kB / 287.7 MB, free: 2.336 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.176e-05/0.01877, allocations: 63.3 kB / 287.8 MB, free: 2.273 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.01878, allocations: 8 kB / 287.8 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.01878, allocations: 0 / 287.8 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.01879, allocations: 3.984 kB / 287.8 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.02044, allocations: 1.454 MB / 289.2 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.02045, allocations: 8 kB / 289.2 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003262/0.02078, allocations: 163.8 kB / 289.4 MB, free: 444 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.869e-06/0.02079, allocations: 16 kB / 289.4 MB, free: 428 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.02082, allocations: 31.92 kB / 289.4 MB, free: 396 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.448e-06/0.02083, allocations: 15.94 kB / 289.5 MB, free: 380 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.02083, allocations: 15.94 kB / 289.5 MB, free: 364 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008041/0.02164, allocations: 1.058 MB / 290.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.02174, allocations: 91.62 kB / 290.6 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.02178, allocations: 23.98 kB / 290.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002516/0.02203, allocations: 63.94 kB / 290.7 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.02214, allocations: 91.67 kB / 290.8 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.02217, allocations: 24 kB / 290.8 MB, free: 14.8 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.416e-05/0.02223, allocations: 173 kB / 291 MB, free: 14.63 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02223, allocations: 0 / 291 MB, free: 14.63 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003554/0.02259, allocations: 116 kB / 291.1 MB, free: 14.52 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 9.988e-05/0.02269, allocations: 131 kB / 291.2 MB, free: 14.38 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005848/0.02327, allocations: 0.5115 MB / 291.7 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.02327, allocations: 0 / 291.7 MB, free: 13.87 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.02344, allocations: 155 kB / 291.9 MB, free: 13.71 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005148/0.02396, allocations: 141.5 kB / 292 MB, free: 13.58 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001294/0.02525, allocations: 1.119 MB / 293.2 MB, free: 12.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.889e-05/0.02534, allocations: 130.8 kB / 293.3 MB, free: 12.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002453/0.02559, allocations: 79.2 kB / 293.4 MB, free: 12.02 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.02589, allocations: 130.2 kB / 293.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02589, allocations: 0 / 293.5 MB, free: 11.89 MB / 282.7 MB Notification: Performance of Templates: time 0.01049/0.03638, allocations: 9.395 MB / 302.9 MB, free: 2.535 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.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.930517179891467]