Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001768/0.001768, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002306/0.002307, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.545/1.545, allocations: 227.7 MB / 247.7 MB, free: 10.32 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002072/0.002073, allocations: 68.92 kB / 307.9 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1262, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003951/0.1302, allocations: 2.146 MB / 360.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.1317, allocations: 0.6938 MB / 361.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.1319, allocations: 4 kB / 361.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.1322, allocations: 43.64 kB / 361.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001509/0.1323, allocations: 51.61 kB / 361.4 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003974/0.1327, allocations: 115.8 kB / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004039/0.1331, allocations: 343.2 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001999/0.1334, allocations: 80.28 kB / 361.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002906/0.1336, allocations: 143.5 kB / 362 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.1339, allocations: 155.4 kB / 362.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.134, allocations: 32 kB / 362.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.234e-05/0.134, allocations: 28 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001174/0.1342, allocations: 83.8 kB / 362.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001341/0.1343, allocations: 119.4 kB / 362.4 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003296/0.1346, allocations: 279.4 kB / 362.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1347, allocations: 0 / 362.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.1347, allocations: 4 kB / 362.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.1347, allocations: 0 / 362.7 MB, free: 9.637 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001211/0.1359, allocations: 0.5767 MB / 363.3 MB, free: 9.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.136, allocations: 8.031 kB / 363.3 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.57e-05/0.136, allocations: 36.64 kB / 363.3 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003432/0.1364, allocations: 251 kB / 363.6 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002304/0.1366, allocations: 134.2 kB / 363.7 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.1367, allocations: 27.94 kB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008789/0.1376, allocations: 363.6 kB / 364.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.1376, allocations: 4 kB / 364.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.1377, allocations: 8 kB / 364.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.1377, allocations: 11.94 kB / 364.1 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1392, allocations: 497.9 kB / 364.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.141, allocations: 1.003 MB / 365.6 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001243/0.1423, allocations: 340.7 kB / 365.9 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005172/0.1428, allocations: 181.2 kB / 366.1 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-05/0.1429, allocations: 4.219 kB / 366.1 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.477e-05/0.1429, allocations: 38.8 kB / 366.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 5.73e-06/0.1429, allocations: 3.984 kB / 366.2 MB, free: 5.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.0282/0.1711, allocations: 5.788 MB / 371.9 MB, free: 104 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.1712, allocations: 59.78 kB / 372 MB, free: 32 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1977/0.369, allocations: 194 kB / 372.2 MB, free: 21.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001163/0.3691, allocations: 34.08 kB / 372.2 MB, free: 21.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.207e-05/0.3692, allocations: 155.2 kB / 372.4 MB, free: 21.05 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001685/0.3694, allocations: 177.6 kB / 372.6 MB, free: 20.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002367/0.3697, allocations: 94 kB / 372.6 MB, free: 20.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.257e-05/0.3698, allocations: 343.9 kB / 373 MB, free: 20.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001416/0.3712, allocations: 466.9 kB / 373.4 MB, free: 20.62 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.3726, allocations: 0.5167 MB / 374 MB, free: 20.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.3752, allocations: 0.8056 MB / 374.8 MB, free: 20.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.3752, allocations: 2.688 kB / 374.8 MB, free: 20.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003046/0.3782, allocations: 0.9822 MB / 375.7 MB, free: 19.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.3783, allocations: 9.906 kB / 375.8 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3783, allocations: 2 kB / 375.8 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.3783, allocations: 3.906 kB / 375.8 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.3794, allocations: 172.2 kB / 375.9 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.3794, allocations: 5.375 kB / 375.9 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007265/0.3801, allocations: 86.73 kB / 376 MB, free: 19.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.274e-05/0.3802, allocations: 16.38 kB / 376 MB, free: 19.89 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002174/0.3804, allocations: 155.3 kB / 376.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.12e-05/0.3805, allocations: 25.47 kB / 376.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000142/0.3807, allocations: 49.44 kB / 376.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.3807, allocations: 9.438 kB / 376.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.3807, allocations: 4.906 kB / 376.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.3807, allocations: 2.391 kB / 376.3 MB, free: 19.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004227/0.3849, allocations: 1.876 MB / 378.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.385, allocations: 7.906 kB / 378.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006994/0.3857, allocations: 150.2 kB / 378.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.752e-05/0.3857, allocations: 10.25 kB / 378.3 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/0.3858, allocations: 21.62 kB / 378.3 MB, free: 18.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.668e-05/0.3858, allocations: 20.02 kB / 378.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.3858, allocations: 12.53 kB / 378.4 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002867/0.3887, allocations: 1.223 MB / 379.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001918/0.3889, allocations: 148 kB / 379.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.162e-05/0.389, allocations: 27.16 kB / 379.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005486/0.3895, allocations: 71.19 kB / 379.8 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.3897, allocations: 84.16 kB / 379.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.647e-05/0.3898, allocations: 28.88 kB / 379.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001752/0.39, allocations: 145.7 kB / 380.1 MB, free: 17.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.39, allocations: 1.438 kB / 380.1 MB, free: 17.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005257/0.3905, allocations: 97.78 kB / 380.2 MB, free: 17.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001464/0.3907, allocations: 126.5 kB / 380.3 MB, free: 17.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002511/0.3932, allocations: 0.8749 MB / 381.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.3932, allocations: 1.781 kB / 381.2 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3942, allocations: 328.2 kB / 381.5 MB, free: 17.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000674/0.3949, allocations: 63.73 kB / 381.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002174/0.3971, allocations: 1.044 MB / 382.6 MB, free: 16.35 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002854/0.3974, allocations: 0.7824 MB / 383.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.3977, allocations: 32.84 kB / 383.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of SimCode: time 1.533e-06/0.3977, allocations: 1.094 kB / 383.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of Templates: time 0.01041/0.4081, allocations: 5.567 MB / 389 MB, free: 13.74 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches