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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 115.9 kB / 18.41 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.00166, allocations: 207.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.383/1.383, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 61.02 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1046, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004747/0.1094, allocations: 2.387 MB / 361.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.1115, allocations: 0.8611 MB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002318/0.1118, allocations: 11.94 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003638/0.1122, allocations: 51.58 kB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002943/0.1125, allocations: 75.42 kB / 362.3 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008309/0.1133, allocations: 195.6 kB / 362.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005246/0.1139, allocations: 391.5 kB / 362.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002774/0.1142, allocations: 111.5 kB / 363 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003777/0.1145, allocations: 175.3 kB / 363.1 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.1149, allocations: 171.3 kB / 363.3 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.778e-05/0.1149, allocations: 39.94 kB / 363.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.37e-05/0.115, allocations: 32 kB / 363.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.1152, allocations: 107.7 kB / 363.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002003/0.1154, allocations: 163.1 kB / 363.6 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004911/0.1159, allocations: 370.7 kB / 364 MB, free: 8.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.1159, allocations: 3.938 kB / 364 MB, free: 8.219 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1159, allocations: 0 / 364 MB, free: 8.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1159, allocations: 0 / 364 MB, free: 8.219 MB / 302.1 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.001591/0.1175, allocations: 0.6665 MB / 364.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.1176, allocations: 12.03 kB / 364.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.1177, allocations: 48.47 kB / 364.7 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005381/0.1183, allocations: 307.1 kB / 365 MB, free: 7.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002248/0.1185, allocations: 138.2 kB / 365.2 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.811e-05/0.1186, allocations: 32.38 kB / 365.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001474/0.1201, allocations: 0.5755 MB / 365.8 MB, free: 6.316 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.1201, allocations: 4 kB / 365.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.554e-05/0.1202, allocations: 8 kB / 365.8 MB, free: 6.305 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1202, allocations: 11.94 kB / 365.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.1219, allocations: 0.5113 MB / 366.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.1239, allocations: 1.017 MB / 367.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001473/0.1254, allocations: 0.5056 MB / 367.8 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005463/0.1259, allocations: 262.9 kB / 368.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.257e-05/0.126, allocations: 4 kB / 368.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.126, allocations: 46.5 kB / 368.1 MB, free: 3.824 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.725e-06/0.126, allocations: 3.938 kB / 368.1 MB, free: 3.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2393/0.3653, allocations: 5.751 MB / 373.9 MB, free: 20.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.3655, allocations: 149.6 kB / 374 MB, free: 20.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000332/0.3658, allocations: 253.5 kB / 374.3 MB, free: 20.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.948e-05/0.3659, allocations: 40.27 kB / 374.3 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.231e-05/0.366, allocations: 156 kB / 374.5 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/0.3662, allocations: 189.6 kB / 374.7 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003231/0.3666, allocations: 115.4 kB / 374.8 MB, free: 20.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.865e-05/0.3667, allocations: 346.4 kB / 375.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001671/0.3683, allocations: 0.6165 MB / 375.7 MB, free: 19.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001587/0.3699, allocations: 0.7979 MB / 376.5 MB, free: 19.04 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00266/0.3726, allocations: 1.254 MB / 377.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/0.3726, allocations: 6.094 kB / 377.8 MB, free: 18.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003347/0.376, allocations: 1.392 MB / 379.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.376, allocations: 10.44 kB / 379.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.3761, allocations: 7.328 kB / 379.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.092e-05/0.3761, allocations: 9 kB / 379.2 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.3775, allocations: 207.1 kB / 379.4 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.138e-05/0.3775, allocations: 13.78 kB / 379.4 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000937/0.3785, allocations: 106 kB / 379.5 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.253e-05/0.3786, allocations: 26.88 kB / 379.5 MB, free: 17.79 MB / 302.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.0003398/0.3789, allocations: 192.3 kB / 379.7 MB, free: 17.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000331/0.3792, allocations: 163.4 kB / 379.9 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001664/0.3794, allocations: 72.72 kB / 380 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.3794, allocations: 9.125 kB / 380 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-05/0.3795, allocations: 0 / 380 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.3795, allocations: 7.312 kB / 380 MB, free: 17.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004456/0.3839, allocations: 2.186 MB / 382.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.421e-05/0.384, allocations: 8.875 kB / 382.2 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007399/0.3847, allocations: 180.3 kB / 382.4 MB, free: 16.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.222e-05/0.3847, allocations: 21.48 kB / 382.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.239e-05/0.3848, allocations: 25.09 kB / 382.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.447e-05/0.3848, allocations: 23.2 kB / 382.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-05/0.3849, allocations: 15.22 kB / 382.4 MB, free: 16.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002853/0.3877, allocations: 1.561 MB / 384 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002241/0.388, allocations: 179.5 kB / 384.2 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.796e-05/0.388, allocations: 29.86 kB / 384.2 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.3886, allocations: 77.09 kB / 384.3 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/0.3888, allocations: 97.86 kB / 384.4 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.424e-05/0.3889, allocations: 29.72 kB / 384.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001949/0.3891, allocations: 190.8 kB / 384.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.152e-06/0.3891, allocations: 0 / 384.6 MB, free: 15.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007306/0.3898, allocations: 128.2 kB / 384.7 MB, free: 14.99 MB / 302.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.0001732/0.39, allocations: 133.8 kB / 384.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002892/0.3929, allocations: 1.144 MB / 386 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/0.3929, allocations: 1.281 kB / 386 MB, free: 14.44 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009337/0.3939, allocations: 341.2 kB / 386.3 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009453/0.3948, allocations: 155.2 kB / 386.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.3971, allocations: 1.222 MB / 387.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.3975, allocations: 0.8309 MB / 388.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004832/0.398, allocations: 101.3 kB / 388.6 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002816/0.3983, allocations: 40.59 kB / 388.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3983, allocations: 5.094 kB / 388.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of Templates: time 0.01356/0.4118, allocations: 8.405 MB / 397.1 MB, free: 7.957 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches