Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 113.3 kB / 17.69 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.266/1.266, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009718/0.0009719, allocations: 43.17 kB / 302 MB, free: 5.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.08989, allocations: 49.44 MB / 351.5 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003314/0.09323, allocations: 2.347 MB / 353.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.09445, allocations: 0.7988 MB / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001164/0.09458, allocations: 7.938 kB / 354.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002537/0.09484, allocations: 55.58 kB / 354.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.09503, allocations: 59.48 kB / 354.8 MB, free: 484 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004528/0.09549, allocations: 175.7 kB / 354.9 MB, free: 308 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003578/0.09586, allocations: 379.6 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.09606, allocations: 103.8 kB / 355.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.09625, allocations: 159.4 kB / 355.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.09648, allocations: 179.3 kB / 355.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.752e-05/0.09655, allocations: 32 kB / 355.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.287e-05/0.09661, allocations: 36 kB / 355.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001627/0.09678, allocations: 95.78 kB / 355.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002222/0.09701, allocations: 151.2 kB / 356 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003543/0.09737, allocations: 334.8 kB / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.09738, allocations: 0 / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.09739, allocations: 3.938 kB / 356.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.513e-06/0.0974, allocations: 0 / 356.4 MB, free: 14.86 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.001149/0.09856, allocations: 0.62 MB / 357 MB, free: 14.19 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.0986, allocations: 11.89 kB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.7e-05/0.09868, allocations: 44.56 kB / 357 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000377/0.09906, allocations: 276.3 kB / 357.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002053/0.09928, allocations: 134.3 kB / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.392e-05/0.09935, allocations: 36.27 kB / 357.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001084/0.1004, allocations: 0.57 MB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1005, allocations: 7.938 kB / 358.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.192e-05/0.1005, allocations: 8 kB / 358.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.1005, allocations: 11.94 kB / 358.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.1018, allocations: 0.504 MB / 358.6 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.1032, allocations: 1.006 MB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.1047, allocations: 0.5024 MB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005591/0.1053, allocations: 263.4 kB / 360.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.238e-05/0.1053, allocations: 16.14 kB / 360.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.1053, allocations: 34.56 kB / 360.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.844e-06/0.1053, allocations: 0 / 360.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03743/0.1428, allocations: 5.718 MB / 366.1 MB, free: 4.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.674e-05/0.1429, allocations: 148.9 kB / 366.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.1431, allocations: 200.2 kB / 366.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.849e-05/0.1432, allocations: 37.7 kB / 366.5 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.132e-05/0.1433, allocations: 141.5 kB / 366.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001955/0.1435, allocations: 189.3 kB / 366.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002901/0.1438, allocations: 110.7 kB / 366.9 MB, free: 3.957 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1439, allocations: 346.8 kB / 367.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001465/0.1454, allocations: 0.6188 MB / 367.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001563/0.147, allocations: 0.8002 MB / 368.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002774/0.1498, allocations: 1.244 MB / 369.9 MB, free: 0.793 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.1498, allocations: 0 / 369.9 MB, free: 0.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1691/0.3189, allocations: 1.395 MB / 371.3 MB, free: 26.12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/0.319, allocations: 8.234 kB / 371.3 MB, free: 26.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.319, allocations: 6.812 kB / 371.3 MB, free: 26.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.637e-05/0.319, allocations: 8.5 kB / 371.3 MB, free: 26.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.3204, allocations: 211.7 kB / 371.5 MB, free: 26.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.219e-05/0.3205, allocations: 14.39 kB / 371.6 MB, free: 26.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009209/0.3214, allocations: 96.17 kB / 371.7 MB, free: 26.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.002e-05/0.3215, allocations: 31 kB / 371.7 MB, free: 26.12 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.0002967/0.3218, allocations: 191.4 kB / 371.9 MB, free: 26 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.3221, allocations: 152.7 kB / 372 MB, free: 25.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001526/0.3223, allocations: 60.86 kB / 372.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.3223, allocations: 9.719 kB / 372.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.3223, allocations: 1.406 kB / 372.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.3223, allocations: 4.312 kB / 372.1 MB, free: 25.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004747/0.3271, allocations: 2.178 MB / 374.3 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.701e-05/0.3271, allocations: 11.19 kB / 374.3 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000736/0.3279, allocations: 181.8 kB / 374.5 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.585e-05/0.3279, allocations: 13.75 kB / 374.5 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.296e-05/0.3279, allocations: 27.88 kB / 374.5 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.718e-05/0.328, allocations: 23.92 kB / 374.5 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.2e-05/0.328, allocations: 18.56 kB / 374.5 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002847/0.3308, allocations: 1.558 MB / 376.1 MB, free: 24.12 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.331, allocations: 159.8 kB / 376.3 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.547e-05/0.3311, allocations: 27.27 kB / 376.3 MB, free: 23.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000571/0.3317, allocations: 77.56 kB / 376.4 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002101/0.3319, allocations: 98.45 kB / 376.5 MB, free: 23.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.147e-05/0.332, allocations: 33.06 kB / 376.5 MB, free: 23.94 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001257/0.3321, allocations: 147 kB / 376.6 MB, free: 23.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.3321, allocations: 0 / 376.6 MB, free: 23.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007124/0.3328, allocations: 122.7 kB / 376.8 MB, free: 23.82 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.0001641/0.333, allocations: 132 kB / 376.9 MB, free: 23.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002743/0.3358, allocations: 1.14 MB / 378 MB, free: 23.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.3358, allocations: 1.812 kB / 378 MB, free: 23.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009337/0.3367, allocations: 343.5 kB / 378.4 MB, free: 23.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008673/0.3376, allocations: 139.2 kB / 378.5 MB, free: 23.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002091/0.3397, allocations: 1.167 MB / 379.7 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.34, allocations: 0.8149 MB / 380.5 MB, free: 21.59 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004603/0.3405, allocations: 93.77 kB / 380.6 MB, free: 21.56 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002875/0.3408, allocations: 38.84 kB / 380.6 MB, free: 21.56 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.3408, allocations: 0 / 380.6 MB, free: 21.56 MB / 302.1 MB Notification: Performance of Templates: time 0.01332/0.3541, allocations: 8.203 MB / 388.8 MB, free: 18.49 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches