Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001093/0.001093, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001527/0.00262, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009989/0.0009989, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001436/0.002435, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9132/0.9132, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08313/0.9963, allocations: 52.5 MB / 238.3 MB, free: 4.422 MB / 234.7 MB " [Timeout remaining time 179] 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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.282e-06/1.282e-06, allocations: 0 / 239.5 MB, free: 3.199 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.474e-05/2.602e-05, allocations: 6.312 kB / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003685/0.003711, allocations: 2.365 MB / 241.9 MB, free: 0.8125 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.005134, allocations: 0.7713 MB / 242.7 MB, free: 36 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.00528, allocations: 15.94 kB / 242.7 MB, free: 20 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.005517, allocations: 55.5 kB / 242.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001953/0.005712, allocations: 59.5 kB / 242.8 MB, free: 15.91 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004725/0.006184, allocations: 175.5 kB / 243 MB, free: 15.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004264/0.006611, allocations: 371.5 kB / 243.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.00678, allocations: 70.48 kB / 243.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003624/0.007143, allocations: 243.5 kB / 243.6 MB, free: 15.06 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002272/0.00737, allocations: 143.6 kB / 243.8 MB, free: 14.92 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.554e-05/0.007435, allocations: 36 kB / 243.8 MB, free: 14.89 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.128e-05/0.007487, allocations: 32 kB / 243.8 MB, free: 14.86 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001056/0.007592, allocations: 75.73 kB / 243.9 MB, free: 14.78 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.007693, allocations: 71.88 kB / 244 MB, free: 14.71 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000322/0.008016, allocations: 219.2 kB / 244.2 MB, free: 14.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.464e-05/0.00803, allocations: 0 / 244.2 MB, free: 14.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.008031, allocations: 0 / 244.2 MB, free: 14.5 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.008052, allocations: 0 / 244.2 MB, free: 14.5 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001007/0.009059, allocations: 0.5661 MB / 244.8 MB, free: 13.91 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.009092, allocations: 12.03 kB / 244.8 MB, free: 13.89 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.129e-05/0.009183, allocations: 56.91 kB / 244.8 MB, free: 13.84 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002925/0.009475, allocations: 181.8 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002419/0.009717, allocations: 343.9 kB / 245.3 MB, free: 13.23 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.536e-05/0.009773, allocations: 32.31 kB / 245.4 MB, free: 13.2 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006664/0.01044, allocations: 416 kB / 245.8 MB, free: 12.77 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.01046, allocations: 3.938 kB / 245.8 MB, free: 12.76 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.01049, allocations: 12 kB / 245.8 MB, free: 12.75 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.0105, allocations: 8 kB / 245.8 MB, free: 12.74 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003985/0.0109, allocations: 170.6 kB / 246 MB, free: 12.57 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.01193, allocations: 0.6431 MB / 246.6 MB, free: 11.89 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006685/0.0126, allocations: 326.7 kB / 246.9 MB, free: 11.53 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.01278, allocations: 121.2 kB / 247.1 MB, free: 11.4 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.262e-05/0.01282, allocations: 8 kB / 247.1 MB, free: 11.39 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.01286, allocations: 46.44 kB / 247.1 MB, free: 11.34 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 2.184e-06/0.01286, allocations: 0 / 247.1 MB, free: 11.34 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.00885/0.02171, allocations: 2.239 MB / 249.3 MB, free: 9.094 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.646e-05/0.0218, allocations: 152.9 kB / 249.5 MB, free: 8.914 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.02195, allocations: 178.5 kB / 249.7 MB, free: 8.727 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.016e-05/0.02201, allocations: 41.69 kB / 249.7 MB, free: 8.68 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.597e-05/0.02208, allocations: 129.8 kB / 249.8 MB, free: 8.551 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.02224, allocations: 198.2 kB / 250 MB, free: 8.355 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002369/0.02247, allocations: 90.3 kB / 250.1 MB, free: 8.262 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.02258, allocations: 354.7 kB / 250.5 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.02295, allocations: 204.1 kB / 250.7 MB, free: 7.707 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004176/0.02337, allocations: 286.7 kB / 250.9 MB, free: 7.398 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007214/0.02409, allocations: 0.4912 MB / 251.4 MB, free: 6.875 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.02409, allocations: 3.938 kB / 251.4 MB, free: 6.871 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000912/0.025, allocations: 0.5326 MB / 252 MB, free: 6.332 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.02502, allocations: 12.03 kB / 252 MB, free: 6.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.02503, allocations: 3.938 kB / 252 MB, free: 6.316 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.02504, allocations: 4 kB / 252 MB, free: 6.312 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009922/0.02604, allocations: 179.8 kB / 252.2 MB, free: 6.137 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.02605, allocations: 7.938 kB / 252.2 MB, free: 6.129 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005378/0.02658, allocations: 75.91 kB / 252.3 MB, free: 6.055 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.02664, allocations: 12 kB / 252.3 MB, free: 6.043 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (67): * Single equations (assignments): 67 * 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.0002068/0.02685, allocations: 148.5 kB / 252.4 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002334/0.02708, allocations: 121.5 kB / 252.5 MB, free: 5.762 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.02719, allocations: 59.31 kB / 252.6 MB, free: 5.699 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.0272, allocations: 8 kB / 252.6 MB, free: 5.691 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.02721, allocations: 4 kB / 252.6 MB, free: 5.688 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/0.02722, allocations: 3.984 kB / 252.6 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.02955, allocations: 1.188 MB / 253.8 MB, free: 4.344 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/0.02956, allocations: 8 kB / 253.8 MB, free: 4.336 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003716/0.02993, allocations: 191.7 kB / 254 MB, free: 4.148 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.048e-05/0.03002, allocations: 55.67 kB / 254 MB, free: 4.094 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.097e-06/0.03003, allocations: 16 kB / 254.1 MB, free: 4.078 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.031e-05/0.03006, allocations: 24 kB / 254.1 MB, free: 4.055 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.024e-05/0.03007, allocations: 20.3 kB / 254.1 MB, free: 4.035 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.866e-06/0.03008, allocations: 19.94 kB / 254.1 MB, free: 4.016 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006119/0.03069, allocations: 0.843 MB / 255 MB, free: 3.02 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/0.03073, allocations: 27.98 kB / 255 MB, free: 2.992 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002353/0.03097, allocations: 67.97 kB / 255.1 MB, free: 2.926 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.03108, allocations: 83.64 kB / 255.1 MB, free: 2.844 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.0311, allocations: 31.94 kB / 255.2 MB, free: 2.812 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.284e-05/0.03115, allocations: 49.86 kB / 255.2 MB, free: 2.762 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03115, allocations: 0 / 255.2 MB, free: 2.762 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003352/0.03148, allocations: 116 kB / 255.3 MB, free: 2.648 MB / 250.7 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.0001255/0.03161, allocations: 116.1 kB / 255.4 MB, free: 2.527 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005047/0.03211, allocations: 465.1 kB / 255.9 MB, free: 2.066 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/0.03212, allocations: 8 kB / 255.9 MB, free: 2.059 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.03229, allocations: 155.2 kB / 256.1 MB, free: 1.906 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00048/0.03277, allocations: 168.2 kB / 256.2 MB, free: 1.746 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002314/0.03508, allocations: 1.131 MB / 257.3 MB, free: 460 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.244e-05/0.03517, allocations: 126.8 kB / 257.5 MB, free: 312 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002516/0.03542, allocations: 75.3 kB / 257.5 MB, free: 232 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000271/0.0357, allocations: 119.3 kB / 257.7 MB, free: 112 kB / 250.7 MB Notification: Performance of SimCode: time 6.91e-07/0.0357, allocations: 0 / 257.7 MB, free: 112 kB / 250.7 MB Notification: Performance of Templates: time 0.009516/0.04521, allocations: 9.385 MB / 267 MB, free: 6.777 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5532323252409697]