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) 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001115/0.001114, allocations: 114.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 204.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.412/1.412, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001364, allocations: 59.91 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1151, allocations: 50.55 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003983/0.1192, allocations: 2.348 MB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.1208, allocations: 0.8339 MB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001491/0.121, allocations: 4 kB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002902/0.1213, allocations: 51.58 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002104/0.1215, allocations: 63.48 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005667/0.1221, allocations: 175.6 kB / 362.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004334/0.1226, allocations: 383.5 kB / 362.7 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002496/0.1228, allocations: 107.8 kB / 362.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003212/0.1231, allocations: 167.4 kB / 363 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000306/0.1235, allocations: 179.3 kB / 363.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.95e-05/0.1235, allocations: 32 kB / 363.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.564e-05/0.1236, allocations: 36 kB / 363.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.1238, allocations: 95.72 kB / 363.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.1239, allocations: 147.2 kB / 363.5 MB, free: 8.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004175/0.1243, allocations: 334.8 kB / 363.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1244, allocations: 0 / 363.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1244, allocations: 0 / 363.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.475e-06/0.1244, allocations: 0 / 363.8 MB, free: 8.406 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001341/0.1257, allocations: 0.6317 MB / 364.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1258, allocations: 12.03 kB / 364.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.607e-05/0.1259, allocations: 36.56 kB / 364.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000421/0.1263, allocations: 277.4 kB / 364.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002167/0.1265, allocations: 134.2 kB / 364.9 MB, free: 7.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.127e-05/0.1266, allocations: 36.36 kB / 364.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.1278, allocations: 0.5706 MB / 365.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.1278, allocations: 7.938 kB / 365.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.1278, allocations: 8 kB / 365.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.1278, allocations: 8 kB / 365.5 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.1291, allocations: 0.5112 MB / 366 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001529/0.1306, allocations: 0.9901 MB / 367 MB, free: 4.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/0.1321, allocations: 0.5091 MB / 367.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005927/0.1327, allocations: 258.9 kB / 367.8 MB, free: 4.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.1328, allocations: 12.14 kB / 367.8 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.951e-05/0.1328, allocations: 46.5 kB / 367.9 MB, free: 4.113 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 3.106e-06/0.1328, allocations: 3.984 kB / 367.9 MB, free: 4.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2321/0.365, allocations: 5.715 MB / 373.6 MB, free: 20.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.3651, allocations: 144.8 kB / 373.7 MB, free: 20.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.3653, allocations: 206 kB / 373.9 MB, free: 20.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.801e-05/0.3654, allocations: 37.7 kB / 374 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.417e-05/0.3655, allocations: 143.8 kB / 374.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.3657, allocations: 191.4 kB / 374.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002884/0.366, allocations: 109.6 kB / 374.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.523e-05/0.366, allocations: 340.9 kB / 374.7 MB, free: 19.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/0.3676, allocations: 0.616 MB / 375.3 MB, free: 19.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001605/0.3692, allocations: 0.7939 MB / 376.1 MB, free: 19.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00254/0.3717, allocations: 1.256 MB / 377.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.3718, allocations: 1.375 kB / 377.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003186/0.3749, allocations: 1.396 MB / 378.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.375, allocations: 7.812 kB / 378.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/0.375, allocations: 5.281 kB / 378.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.83e-05/0.375, allocations: 9.469 kB / 378.8 MB, free: 17.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.3764, allocations: 212.4 kB / 379 MB, free: 17.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/0.3764, allocations: 14.33 kB / 379 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009587/0.3774, allocations: 106.7 kB / 379.1 MB, free: 17.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.734e-05/0.3775, allocations: 25.95 kB / 379.2 MB, free: 17.8 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.0002931/0.3778, allocations: 192.4 kB / 379.3 MB, free: 17.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000284/0.3781, allocations: 149.6 kB / 379.5 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000139/0.3782, allocations: 63.72 kB / 379.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.3782, allocations: 8.438 kB / 379.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.3783, allocations: 5.719 kB / 379.6 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.428e-06/0.3783, allocations: 4.516 kB / 379.6 MB, free: 17.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00436/0.3826, allocations: 2.172 MB / 381.7 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.424e-05/0.3827, allocations: 11.69 kB / 381.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007334/0.3834, allocations: 179 kB / 381.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.917e-05/0.3834, allocations: 18.25 kB / 381.9 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.058e-05/0.3835, allocations: 27.58 kB / 382 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.775e-05/0.3835, allocations: 19.97 kB / 382 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/0.3835, allocations: 19.94 kB / 382 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002866/0.3864, allocations: 1.542 MB / 383.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.3866, allocations: 160.7 kB / 383.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.54e-05/0.3867, allocations: 30.17 kB / 383.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005488/0.3873, allocations: 78.05 kB / 383.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001985/0.3875, allocations: 93.06 kB / 383.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.028e-05/0.3875, allocations: 30.34 kB / 383.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001246/0.3877, allocations: 146.5 kB / 384.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3877, allocations: 0 / 384.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007378/0.3884, allocations: 121.9 kB / 384.2 MB, free: 15.07 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.0002021/0.3886, allocations: 136.9 kB / 384.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.3916, allocations: 1.139 MB / 385.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.294e-05/0.3917, allocations: 2.188 kB / 385.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.3927, allocations: 339.7 kB / 385.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009808/0.3937, allocations: 143.8 kB / 385.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.3958, allocations: 1.17 MB / 387.1 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.3961, allocations: 0.8089 MB / 387.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005157/0.3966, allocations: 95.98 kB / 388 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.3969, allocations: 42.36 kB / 388.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3969, allocations: 3.938 kB / 388.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of Templates: time 0.01253/0.4095, allocations: 8.195 MB / 396.3 MB, free: 8.789 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (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 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches