Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 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.SubClocked,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.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_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001619/0.001619, 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.00141/0.00141, 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.43/1.43, allocations: 227.7 MB / 247.7 MB, free: 10.3 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.001916/0.001916, allocations: 65.02 kB / 307.9 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1042, allocations: 50.53 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003936/0.1081, allocations: 2.354 MB / 360.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.1097, allocations: 0.8416 MB / 361.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.1099, allocations: 8 kB / 361.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003043/0.1102, allocations: 47.58 kB / 361.7 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.1104, allocations: 63.48 kB / 361.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.1109, allocations: 179.6 kB / 361.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004338/0.1114, allocations: 383.5 kB / 362.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.1116, allocations: 103.8 kB / 362.4 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003151/0.1119, allocations: 163.5 kB / 362.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.1122, allocations: 179.2 kB / 362.7 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.823e-05/0.1123, allocations: 32 kB / 362.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.819e-05/0.1123, allocations: 36 kB / 362.8 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001246/0.1124, allocations: 95.77 kB / 362.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001543/0.1126, allocations: 143.2 kB / 363 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003597/0.113, allocations: 331.2 kB / 363.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.113, allocations: 0 / 363.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.113, allocations: 0 / 363.3 MB, free: 9.016 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.113, allocations: 3.938 kB / 363.3 MB, free: 9.012 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.001228/0.1142, allocations: 0.6238 MB / 364 MB, free: 8.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1143, allocations: 12.02 kB / 364 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.197e-05/0.1144, allocations: 40.56 kB / 364 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.1147, allocations: 276.2 kB / 364.3 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002033/0.115, allocations: 130.3 kB / 364.4 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.612e-05/0.115, allocations: 36.38 kB / 364.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.1162, allocations: 0.5622 MB / 365 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1163, allocations: 0 / 365 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/0.1163, allocations: 12 kB / 365 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.1163, allocations: 8 kB / 365 MB, free: 7.191 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.1178, allocations: 0.5097 MB / 365.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001543/0.1193, allocations: 1.01 MB / 366.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001609/0.1209, allocations: 0.4985 MB / 367 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006485/0.1216, allocations: 265.2 kB / 367.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.656e-05/0.1216, allocations: 8 kB / 367.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.1217, allocations: 38.5 kB / 367.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.774e-06/0.1217, allocations: 4 kB / 367.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2097/0.3314, allocations: 5.719 MB / 373.1 MB, free: 20.61 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.39e-05/0.3315, allocations: 144.8 kB / 373.2 MB, free: 20.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002362/0.3317, allocations: 203.9 kB / 373.4 MB, free: 20.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.1e-05/0.3318, allocations: 38.73 kB / 373.5 MB, free: 20.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.3319, allocations: 143.1 kB / 373.6 MB, free: 20.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/0.3321, allocations: 192.2 kB / 373.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.3324, allocations: 108.3 kB / 373.9 MB, free: 20.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.755e-05/0.3325, allocations: 341.6 kB / 374.2 MB, free: 19.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001599/0.3341, allocations: 0.6198 MB / 374.8 MB, free: 19.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001744/0.3358, allocations: 0.7993 MB / 375.6 MB, free: 19.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/0.3388, allocations: 1.245 MB / 376.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/0.3388, allocations: 1.375 kB / 376.9 MB, free: 18.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003428/0.3423, allocations: 1.403 MB / 378.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3423, allocations: 7.844 kB / 378.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.3423, allocations: 9.75 kB / 378.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.86e-05/0.3424, allocations: 13.06 kB / 378.3 MB, free: 17.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.3436, allocations: 208.6 kB / 378.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.022e-05/0.3437, allocations: 9.891 kB / 378.5 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009058/0.3446, allocations: 99.16 kB / 378.6 MB, free: 17.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.564e-05/0.3447, allocations: 34.52 kB / 378.7 MB, free: 17.84 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.0002969/0.345, allocations: 182.4 kB / 378.8 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000286/0.3453, allocations: 152.3 kB / 379 MB, free: 17.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.3454, allocations: 68.67 kB / 379.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.3455, allocations: 7.281 kB / 379.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.944e-05/0.3455, allocations: 2.172 kB / 379.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.3455, allocations: 5.312 kB / 379.1 MB, free: 17.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/0.3501, allocations: 2.176 MB / 381.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.3501, allocations: 10.75 kB / 381.3 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007467/0.3509, allocations: 182 kB / 381.4 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.67e-05/0.3509, allocations: 14.08 kB / 381.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.115e-05/0.351, allocations: 27.67 kB / 381.5 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.85e-05/0.351, allocations: 20.48 kB / 381.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-05/0.351, allocations: 14.66 kB / 381.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003086/0.3541, allocations: 1.553 MB / 383.1 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.3543, allocations: 163.9 kB / 383.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.241e-05/0.3544, allocations: 27.69 kB / 383.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005656/0.355, allocations: 77.75 kB / 383.3 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.3552, allocations: 96.8 kB / 383.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.724e-05/0.3552, allocations: 30.38 kB / 383.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001206/0.3553, allocations: 142.2 kB / 383.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3553, allocations: 0 / 383.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006789/0.356, allocations: 122.9 kB / 383.7 MB, free: 15.11 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.0001436/0.3562, allocations: 141.5 kB / 383.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002912/0.3591, allocations: 1.149 MB / 385 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/0.3591, allocations: 1.125 kB / 385 MB, free: 14.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.3602, allocations: 343.2 kB / 385.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008783/0.361, allocations: 133.7 kB / 385.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/0.3634, allocations: 1.205 MB / 386.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003386/0.3637, allocations: 0.8134 MB / 387.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.3641, allocations: 42.48 kB / 387.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3641, allocations: 0 / 387.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Templates: time 0.01131/0.3754, allocations: 7.164 MB / 394.7 MB, free: 9.637 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches