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.0008233/0.0008233, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00117/0.001994, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001614/0.001614, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001972/0.003587, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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.038/1.038, allocations: 177.5 MB / 190 MB, free: 4.785 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09054/1.128, allocations: 53.87 MB / 243.9 MB, free: 14.85 MB / 250.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.292e-06/1.292e-06, allocations: 0 / 245.2 MB, free: 13.58 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.199e-05/2.328e-05, allocations: 2.312 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002803/0.002826, allocations: 2.404 MB / 247.6 MB, free: 11.15 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.003965, allocations: 0.8489 MB / 248.4 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.004092, allocations: 7.938 kB / 248.4 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.00428, allocations: 47.58 kB / 248.5 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000155/0.004435, allocations: 71.44 kB / 248.6 MB, free: 10.17 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003649/0.0048, allocations: 187.4 kB / 248.7 MB, free: 9.988 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003006/0.0051, allocations: 379.5 kB / 249.1 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.005239, allocations: 78.94 kB / 249.2 MB, free: 9.539 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003039/0.005543, allocations: 247.5 kB / 249.4 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000168/0.005711, allocations: 155.5 kB / 249.6 MB, free: 9.145 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.01e-05/0.005751, allocations: 36 kB / 249.6 MB, free: 9.109 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.782e-05/0.005788, allocations: 36 kB / 249.7 MB, free: 9.074 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.086e-05/0.005859, allocations: 67.8 kB / 249.7 MB, free: 9.008 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.621e-05/0.005926, allocations: 79.81 kB / 249.8 MB, free: 8.93 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002436/0.006169, allocations: 219.2 kB / 250 MB, free: 8.715 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.03e-05/0.006179, allocations: 4 kB / 250 MB, free: 8.711 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.00618, allocations: 0 / 250 MB, free: 8.711 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.899e-06/0.00619, allocations: 0 / 250 MB, free: 8.711 MB / 250.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.0007028/0.006893, allocations: 0.5661 MB / 250.6 MB, free: 8.121 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.006924, allocations: 12.03 kB / 250.6 MB, free: 8.109 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.342e-05/0.007007, allocations: 60.89 kB / 250.7 MB, free: 8.051 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.00726, allocations: 190.5 kB / 250.8 MB, free: 7.84 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001805/0.007441, allocations: 347.9 kB / 251.2 MB, free: 7.434 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.14e-05/0.007482, allocations: 24.38 kB / 251.2 MB, free: 7.41 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.00795, allocations: 423.6 kB / 251.6 MB, free: 6.965 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.007966, allocations: 8.125 kB / 251.6 MB, free: 6.957 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/0.007991, allocations: 16.12 kB / 251.6 MB, free: 6.941 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.008003, allocations: 8 kB / 251.6 MB, free: 6.934 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002608/0.008263, allocations: 174.6 kB / 251.8 MB, free: 6.762 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006982/0.008961, allocations: 0.639 MB / 252.5 MB, free: 6.086 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004484/0.00941, allocations: 326.8 kB / 252.8 MB, free: 5.727 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001131/0.009523, allocations: 119.5 kB / 252.9 MB, free: 5.598 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.009554, allocations: 8 kB / 252.9 MB, free: 5.59 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.009578, allocations: 46.48 kB / 252.9 MB, free: 5.535 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 2.114e-06/0.00958, allocations: 0 / 252.9 MB, free: 5.535 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005587/0.01517, allocations: 2.263 MB / 255.2 MB, free: 3.266 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.01523, allocations: 149 kB / 255.4 MB, free: 3.09 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.01535, allocations: 183.9 kB / 255.5 MB, free: 2.895 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.023e-05/0.0154, allocations: 41.7 kB / 255.6 MB, free: 2.848 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.206e-05/0.01545, allocations: 137.7 kB / 255.7 MB, free: 2.711 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.01556, allocations: 194.3 kB / 255.9 MB, free: 2.52 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001515/0.01571, allocations: 94.25 kB / 256 MB, free: 2.422 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.634e-05/0.01579, allocations: 338.8 kB / 256.3 MB, free: 2.082 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002327/0.01602, allocations: 204.1 kB / 256.5 MB, free: 1.879 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002634/0.01628, allocations: 290.7 kB / 256.8 MB, free: 1.57 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004643/0.01675, allocations: 0.4946 MB / 257.3 MB, free: 1.047 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.01675, allocations: 3.938 kB / 257.3 MB, free: 1.043 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005798/0.01733, allocations: 0.5324 MB / 257.8 MB, free: 0.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.911e-05/0.01735, allocations: 4 kB / 257.8 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.01736, allocations: 4 kB / 257.8 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.451e-05/0.01737, allocations: 8.219 kB / 257.9 MB, free: 496 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006025/0.01797, allocations: 182.8 kB / 258 MB, free: 316 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.767e-06/0.01798, allocations: 15.86 kB / 258 MB, free: 300 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.01829, allocations: 71.86 kB / 258.1 MB, free: 228 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.01832, allocations: 15.98 kB / 258.1 MB, free: 212 kB / 250.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.0001589/0.01848, allocations: 144.5 kB / 258.3 MB, free: 56 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001854/0.01867, allocations: 117.9 kB / 258.4 MB, free: 15.93 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.665e-05/0.01875, allocations: 71.23 kB / 258.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.01875, allocations: 8 kB / 258.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.01876, allocations: 4 kB / 258.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.01876, allocations: 3.984 kB / 258.5 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.02024, allocations: 1.189 MB / 259.7 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.02025, allocations: 8 kB / 259.7 MB, free: 14.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003671/0.02061, allocations: 194.8 kB / 259.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.037e-05/0.0207, allocations: 51.72 kB / 259.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.02071, allocations: 16 kB / 259.9 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.02074, allocations: 24 kB / 260 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-05/0.02075, allocations: 19.92 kB / 260 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.203e-06/0.02076, allocations: 15.94 kB / 260 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006661/0.02143, allocations: 0.8398 MB / 260.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/0.02147, allocations: 27.98 kB / 260.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.02171, allocations: 63.95 kB / 260.9 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001116/0.02182, allocations: 91.66 kB / 261 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.02184, allocations: 24 kB / 261 MB, free: 12.99 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.35e-05/0.02188, allocations: 54.77 kB / 261.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02189, allocations: 0 / 261.1 MB, free: 12.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003428/0.02223, allocations: 119.9 kB / 261.2 MB, free: 12.82 MB / 266.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.000115/0.02234, allocations: 112.2 kB / 261.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005137/0.02286, allocations: 473.6 kB / 261.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/0.02287, allocations: 8 kB / 261.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002193/0.02309, allocations: 200.2 kB / 262 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005733/0.02366, allocations: 393.3 kB / 262.4 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.02597, allocations: 1.113 MB / 263.5 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.02608, allocations: 130.8 kB / 263.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002804/0.02636, allocations: 83.12 kB / 263.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002911/0.02665, allocations: 119.3 kB / 263.8 MB, free: 9.973 MB / 266.7 MB Notification: Performance of SimCode: time 1.483e-06/0.02665, allocations: 0 / 263.8 MB, free: 9.973 MB / 266.7 MB Notification: Performance of Templates: time 0.01031/0.03696, allocations: 9.408 MB / 273.2 MB, free: 0.6016 MB / 266.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6340233450755477]