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.002008/0.002008, allocations: 115.8 kB / 19.18 MB, free: 3.883 MB / 14.72 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.00246/0.00246, allocations: 208.9 kB / 22.13 MB, free: 0.9297 MB / 14.72 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.629/1.629, allocations: 230.2 MB / 255.2 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001888/0.001888, allocations: 67.89 kB / 374.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1227, allocations: 53.31 MB / 427.8 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004141/0.1269, allocations: 2.387 MB / 430.2 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.1287, allocations: 0.8455 MB / 431 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001612/0.1288, allocations: 8 kB / 431 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003207/0.1292, allocations: 47.58 kB / 431.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.1294, allocations: 67.48 kB / 431.2 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005684/0.1299, allocations: 175.7 kB / 431.3 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004652/0.1304, allocations: 379.5 kB / 431.7 MB, free: 0.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.1306, allocations: 75.86 kB / 431.8 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003435/0.131, allocations: 171.4 kB / 431.9 MB, free: 472 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002911/0.1313, allocations: 179.3 kB / 432.1 MB, free: 292 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.699e-05/0.1313, allocations: 32 kB / 432.2 MB, free: 260 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.639e-05/0.1314, allocations: 40 kB / 432.2 MB, free: 220 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001242/0.1315, allocations: 95.7 kB / 432.3 MB, free: 124 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2405/0.372, allocations: 144.9 kB / 432.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006543/0.3726, allocations: 336.2 kB / 432.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.3726, allocations: 4.281 kB / 432.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3726, allocations: 0 / 432.8 MB, free: 8.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.647e-06/0.3726, allocations: 0.75 kB / 432.8 MB, free: 8.566 MB / 350.1 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.001327/0.374, allocations: 0.6226 MB / 433.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.374, allocations: 10.56 kB / 433.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.3741, allocations: 42.14 kB / 433.4 MB, free: 8.113 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000449/0.3746, allocations: 274.1 kB / 433.7 MB, free: 7.898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/0.3748, allocations: 139.1 kB / 433.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.253e-05/0.3748, allocations: 27.31 kB / 433.9 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.3761, allocations: 0.5741 MB / 434.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.3761, allocations: 4.406 kB / 434.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.647e-05/0.3761, allocations: 12.94 kB / 434.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.3761, allocations: 5.406 kB / 434.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.3775, allocations: 0.5172 MB / 435 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.3789, allocations: 1.007 MB / 436 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001688/0.3806, allocations: 481.9 kB / 436.5 MB, free: 7.059 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006475/0.3813, allocations: 235.1 kB / 436.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.678e-05/0.3813, allocations: 8.828 kB / 436.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.3814, allocations: 40.89 kB / 436.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.144e-06/0.3814, allocations: 0 / 436.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04296/0.4243, allocations: 5.725 MB / 442.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/0.4244, allocations: 155.5 kB / 442.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.4247, allocations: 196.2 kB / 442.8 MB, free: 6.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.436e-05/0.4248, allocations: 40.27 kB / 442.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.996e-05/0.4249, allocations: 148.4 kB / 443 MB, free: 6.102 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.425, allocations: 201.3 kB / 443.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003025/0.4253, allocations: 108.6 kB / 443.3 MB, free: 5.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.095e-05/0.4254, allocations: 348 kB / 443.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001727/0.4271, allocations: 0.6174 MB / 444.2 MB, free: 5.316 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001789/0.4289, allocations: 0.7967 MB / 445 MB, free: 4.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003256/0.4322, allocations: 1.251 MB / 446.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.4322, allocations: 2.344 kB / 446.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003909/0.4361, allocations: 1.398 MB / 447.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.4361, allocations: 7.812 kB / 447.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.4362, allocations: 6.031 kB / 447.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.325e-05/0.4362, allocations: 9.094 kB / 447.7 MB, free: 3.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001508/0.4377, allocations: 210.6 kB / 447.9 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.306e-05/0.4377, allocations: 10.42 kB / 447.9 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/0.4388, allocations: 110.2 kB / 448 MB, free: 3.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.213e-05/0.4389, allocations: 25.19 kB / 448.1 MB, free: 3.613 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0003313/0.4393, allocations: 178.8 kB / 448.2 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003469/0.4396, allocations: 168.4 kB / 448.4 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.4398, allocations: 64.05 kB / 448.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.4398, allocations: 7.969 kB / 448.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/0.4398, allocations: 2.969 kB / 448.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.4398, allocations: 1.641 kB / 448.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004887/0.4447, allocations: 2.166 MB / 450.6 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.654e-05/0.4447, allocations: 10.56 kB / 450.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008368/0.4456, allocations: 195.7 kB / 450.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.84e-05/0.4456, allocations: 13.47 kB / 450.9 MB, free: 2.184 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.289e-05/0.4456, allocations: 22.94 kB / 450.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.739e-05/0.4456, allocations: 25.48 kB / 450.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/0.4457, allocations: 15.31 kB / 450.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.4489, allocations: 1.555 MB / 452.5 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.4491, allocations: 164.1 kB / 452.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.805e-05/0.4492, allocations: 26.09 kB / 452.7 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006399/0.4498, allocations: 76.81 kB / 452.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002063/0.45, allocations: 97.61 kB / 452.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.026e-05/0.4501, allocations: 30.22 kB / 452.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001314/0.4502, allocations: 138.3 kB / 453 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4502, allocations: 0 / 453 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008222/0.451, allocations: 126.5 kB / 453.1 MB, free: 0.6797 MB / 350.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001713/0.4512, allocations: 135 kB / 453.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003017/0.4542, allocations: 1.037 MB / 454.3 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.259e-05/0.4542, allocations: 1.438 kB / 454.3 MB, free: 52 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.4554, allocations: 335.6 kB / 454.6 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.4565, allocations: 132.5 kB / 454.7 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00285/0.4593, allocations: 1.198 MB / 455.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005941/0.4599, allocations: 0.8106 MB / 456.8 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004756/0.4604, allocations: 42.92 kB / 456.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of SimCode: time 1.283e-06/0.4604, allocations: 0 / 456.8 MB, free: 14.08 MB / 366.1 MB Notification: Performance of Templates: time 0.01376/0.4742, allocations: 7.238 MB / 464 MB, free: 10.28 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.202854068018496]