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.000684/0.000684, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001001/0.001685, allocations: 449.7 kB / 10.37 MB, free: 324 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.0007256/0.0007256, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008959/0.001622, allocations: 463.6 kB / 11.72 MB, free: 2.453 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 0.9797/0.9797, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08574/1.065, allocations: 53.86 MB / 243.7 MB, free: 14.91 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.673e-06/1.673e-06, allocations: 0 / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.544e-05/2.711e-05, allocations: 2.312 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.008475/0.008502, allocations: 2.415 MB / 247.4 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001512/0.01001, allocations: 0.8412 MB / 248.2 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.01017, allocations: 7.938 kB / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002392/0.01041, allocations: 59.55 kB / 248.3 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000184/0.01059, allocations: 63.45 kB / 248.4 MB, free: 10.26 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004468/0.01104, allocations: 187.4 kB / 248.6 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003442/0.01448, allocations: 379.5 kB / 248.9 MB, free: 9.707 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001758/0.01466, allocations: 74.95 kB / 249 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003958/0.01505, allocations: 255.4 kB / 249.3 MB, free: 9.387 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002125/0.01526, allocations: 135.6 kB / 249.4 MB, free: 9.254 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.292e-05/0.01532, allocations: 40 kB / 249.4 MB, free: 9.215 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.565e-05/0.01536, allocations: 32 kB / 249.5 MB, free: 9.184 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.418e-05/0.01546, allocations: 83.77 kB / 249.5 MB, free: 9.102 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.023e-05/0.01555, allocations: 75.81 kB / 249.6 MB, free: 9.027 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003111/0.01586, allocations: 219.2 kB / 249.8 MB, free: 8.812 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.367e-05/0.01587, allocations: 3.938 kB / 249.8 MB, free: 8.809 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.01587, allocations: 0 / 249.8 MB, free: 8.809 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.279e-05/0.0159, allocations: 0 / 249.8 MB, free: 8.809 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.0008341/0.01673, allocations: 0.5739 MB / 250.4 MB, free: 8.211 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.01677, allocations: 8.031 kB / 250.4 MB, free: 8.203 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.133e-05/0.01684, allocations: 56.91 kB / 250.5 MB, free: 8.148 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.01707, allocations: 198.4 kB / 250.7 MB, free: 7.93 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002207/0.0173, allocations: 339.9 kB / 251 MB, free: 7.531 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.01734, allocations: 28.38 kB / 251 MB, free: 7.504 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005062/0.01784, allocations: 419.6 kB / 251.4 MB, free: 7.062 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.01786, allocations: 8.141 kB / 251.4 MB, free: 7.055 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.32e-05/0.01788, allocations: 16.06 kB / 251.5 MB, free: 7.039 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.01789, allocations: 8 kB / 251.5 MB, free: 7.031 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.01817, allocations: 177.7 kB / 251.6 MB, free: 6.859 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007035/0.01887, allocations: 0.6351 MB / 252.3 MB, free: 6.184 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004785/0.01935, allocations: 326.8 kB / 252.6 MB, free: 5.824 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001149/0.01947, allocations: 115.4 kB / 252.7 MB, free: 5.699 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.058e-05/0.01951, allocations: 11.98 kB / 252.7 MB, free: 5.688 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/0.01953, allocations: 38.56 kB / 252.8 MB, free: 5.641 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.853e-06/0.01953, allocations: 4 kB / 252.8 MB, free: 5.637 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005632/0.02516, allocations: 2.244 MB / 255 MB, free: 3.391 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.467e-05/0.02525, allocations: 153 kB / 255.1 MB, free: 3.211 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001261/0.02538, allocations: 175.9 kB / 255.3 MB, free: 3.023 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/0.02543, allocations: 41.7 kB / 255.4 MB, free: 2.977 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.39e-05/0.02549, allocations: 133.8 kB / 255.5 MB, free: 2.844 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.02561, allocations: 202.3 kB / 255.7 MB, free: 2.645 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.02576, allocations: 90.25 kB / 255.8 MB, free: 2.551 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.02586, allocations: 342.8 kB / 256.1 MB, free: 2.207 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002607/0.02612, allocations: 204.1 kB / 256.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000268/0.02639, allocations: 298.6 kB / 256.6 MB, free: 1.684 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004763/0.02687, allocations: 499 kB / 257.1 MB, free: 1.168 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.02687, allocations: 3.938 kB / 257.1 MB, free: 1.164 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006/0.02747, allocations: 0.5324 MB / 257.6 MB, free: 0.625 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.02749, allocations: 4 kB / 257.6 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.0275, allocations: 7.938 kB / 257.6 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.02751, allocations: 8.219 kB / 257.6 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006215/0.02813, allocations: 183.7 kB / 257.8 MB, free: 436 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.02814, allocations: 4 kB / 257.8 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.02844, allocations: 75.84 kB / 257.9 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.656e-05/0.02847, allocations: 16 kB / 257.9 MB, free: 340 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.0001568/0.02863, allocations: 144.5 kB / 258.1 MB, free: 184 kB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.0288, allocations: 125.9 kB / 258.2 MB, free: 52 kB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.601e-05/0.02888, allocations: 55.39 kB / 258.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.02889, allocations: 8 kB / 258.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.0289, allocations: 4 kB / 258.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.0289, allocations: 3.984 kB / 258.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.03045, allocations: 1.2 MB / 259.5 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.616e-06/0.03046, allocations: 8 kB / 259.5 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003677/0.03082, allocations: 187.7 kB / 259.6 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.148e-05/0.03092, allocations: 55.72 kB / 259.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.215e-05/0.03093, allocations: 16 kB / 259.7 MB, free: 14.37 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/0.03096, allocations: 24 kB / 259.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.074e-05/0.03097, allocations: 19.92 kB / 259.8 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/0.03098, allocations: 15.94 kB / 259.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006565/0.03164, allocations: 0.8438 MB / 260.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/0.03168, allocations: 27.98 kB / 260.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.03191, allocations: 59.94 kB / 260.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.03204, allocations: 91.67 kB / 260.8 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.901e-05/0.03207, allocations: 28 kB / 260.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.277e-05/0.03211, allocations: 41.66 kB / 260.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.03211, allocations: 0 / 260.9 MB, free: 13.06 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003458/0.03246, allocations: 123.9 kB / 261 MB, free: 12.94 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.0001556/0.03261, allocations: 116.2 kB / 261.1 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005588/0.03317, allocations: 465.1 kB / 261.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.378e-05/0.03319, allocations: 8 kB / 261.6 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001653/0.03335, allocations: 164 kB / 261.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004934/0.03384, allocations: 166.1 kB / 261.9 MB, free: 12.03 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.03624, allocations: 1.125 MB / 263 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001128/0.03636, allocations: 130.8 kB / 263.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002753/0.03663, allocations: 79.3 kB / 263.2 MB, free: 10.51 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.03693, allocations: 115.3 kB / 263.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of SimCode: time 1.242e-06/0.03693, allocations: 0 / 263.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of Templates: time 0.00992/0.04685, allocations: 9.454 MB / 272.8 MB, free: 0.9922 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6286382460966706]