Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001946/0.001946, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 210 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.449/1.449, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 47.92 kB / 378.2 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2576, allocations: 53.37 MB / 431.6 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003942/0.2615, allocations: 2.269 MB / 433.8 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.2632, allocations: 0.8104 MB / 434.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000152/0.2634, allocations: 4 kB / 434.6 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003266/0.2637, allocations: 59.56 kB / 434.7 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002107/0.2639, allocations: 55.5 kB / 434.8 MB, free: 3.52 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005127/0.2644, allocations: 179.6 kB / 434.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000426/0.2648, allocations: 383.6 kB / 435.3 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.265, allocations: 72.33 kB / 435.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000318/0.2653, allocations: 171.4 kB / 435.5 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002487/0.2656, allocations: 163.3 kB / 435.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.836e-05/0.2656, allocations: 32 kB / 435.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.635e-05/0.2657, allocations: 36 kB / 435.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001245/0.2658, allocations: 95.72 kB / 435.9 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001437/0.266, allocations: 135.3 kB / 436 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.2664, allocations: 344.9 kB / 436.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.2664, allocations: 0 / 436.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2664, allocations: 4 kB / 436.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.2664, allocations: 0 / 436.3 MB, free: 1.941 MB / 334.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.001313/0.2678, allocations: 0.5521 MB / 436.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.2678, allocations: 8.031 kB / 436.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.099e-05/0.2679, allocations: 44.7 kB / 436.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000457/0.2683, allocations: 218.5 kB / 437.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003502/0.2687, allocations: 343.9 kB / 437.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.676e-05/0.2688, allocations: 36.38 kB / 437.5 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001272/0.27, allocations: 0.5622 MB / 438.1 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.2701, allocations: 8 kB / 438.1 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.2701, allocations: 8 kB / 438.1 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.2701, allocations: 8 kB / 438.1 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001489/0.2716, allocations: 0.5081 MB / 438.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.2731, allocations: 0.86 MB / 439.5 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.2746, allocations: 478.3 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006645/0.2753, allocations: 235.4 kB / 440.2 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-05/0.2754, allocations: 12 kB / 440.2 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.2754, allocations: 42.5 kB / 440.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.003e-06/0.2754, allocations: 0 / 440.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.038/0.3134, allocations: 5.753 MB / 446 MB, free: 8.023 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.3135, allocations: 145 kB / 446.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.3138, allocations: 208.3 kB / 446.3 MB, free: 7.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.979e-05/0.3139, allocations: 41.7 kB / 446.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.314, allocations: 137.8 kB / 446.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002249/0.3142, allocations: 202.3 kB / 446.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/0.3145, allocations: 114.7 kB / 446.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.3147, allocations: 350.7 kB / 447.2 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.3165, allocations: 0.6188 MB / 447.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/0.3183, allocations: 0.8042 MB / 448.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003378/0.3217, allocations: 1.264 MB / 449.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3217, allocations: 0 / 449.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003895/0.3256, allocations: 1.407 MB / 451.2 MB, free: 2.523 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.3256, allocations: 8 kB / 451.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.3257, allocations: 12.22 kB / 451.3 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.342e-05/0.3257, allocations: 12 kB / 451.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/0.3273, allocations: 207.7 kB / 451.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.141e-05/0.3273, allocations: 15.94 kB / 451.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009695/0.3283, allocations: 103.7 kB / 451.6 MB, free: 2.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.733e-05/0.3284, allocations: 32 kB / 451.6 MB, free: 2.141 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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (84): * Single equations (assignments): 84 * 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.0003317/0.3287, allocations: 181.6 kB / 451.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/0.3291, allocations: 149.7 kB / 452 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001734/0.3292, allocations: 67.77 kB / 452 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.3292, allocations: 8 kB / 452 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.924e-06/0.3292, allocations: 0 / 452 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.999e-06/0.3293, allocations: 7.922 kB / 452 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004965/0.3342, allocations: 1.918 MB / 454 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.64e-05/0.3342, allocations: 16.25 kB / 454 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007644/0.335, allocations: 183.7 kB / 454.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.99e-05/0.335, allocations: 12 kB / 454.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/0.3351, allocations: 24 kB / 454.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.203e-05/0.3351, allocations: 27.86 kB / 454.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.234e-05/0.3351, allocations: 11.94 kB / 454.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003491/0.3386, allocations: 1.577 MB / 455.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002466/0.3389, allocations: 83.69 kB / 455.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.936e-05/0.3389, allocations: 31.98 kB / 455.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006262/0.3396, allocations: 75.86 kB / 456 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.3398, allocations: 103.6 kB / 456.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-05/0.3398, allocations: 39.98 kB / 456.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001511/0.34, allocations: 145.2 kB / 456.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.34, allocations: 0 / 456.3 MB, free: 13.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000688/0.3407, allocations: 120 kB / 456.4 MB, free: 13.05 MB / 366.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001824/0.3409, allocations: 138.9 kB / 456.5 MB, free: 12.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002992/0.3439, allocations: 1.034 MB / 457.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.3439, allocations: 1.375 kB / 457.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001084/0.3449, allocations: 350.2 kB / 457.9 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009398/0.3459, allocations: 130.7 kB / 458 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.3485, allocations: 1.185 MB / 459.2 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002533/0.3488, allocations: 215.2 kB / 459.4 MB, free: 9.832 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000498/0.3493, allocations: 91.31 kB / 459.5 MB, free: 9.738 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.3496, allocations: 47.36 kB / 459.6 MB, free: 9.691 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3496, allocations: 4 kB / 459.6 MB, free: 9.688 MB / 366.1 MB Notification: Performance of Templates: time 0.01597/0.3656, allocations: 9.192 MB / 468.8 MB, free: 0.5742 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.906977063044906]