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.0008485/0.0008485, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001132/0.001981, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001044/0.001044, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001188/0.002232, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.119/1.119, allocations: 177.2 MB / 189.8 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1088/1.227, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] 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 1.393e-06/1.393e-06, allocations: 0 / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.794e-05/1.934e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002591/0.00261, allocations: 2.408 MB / 247.1 MB, free: 11.81 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.003677, allocations: 0.845 MB / 247.9 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.003813, allocations: 7.938 kB / 248 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.004001, allocations: 55.56 kB / 248 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001414/0.004142, allocations: 67.42 kB / 248.1 MB, free: 10.83 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000443/0.004585, allocations: 183.4 kB / 248.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003957/0.004981, allocations: 379.5 kB / 248.6 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001683/0.005149, allocations: 74.95 kB / 248.7 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003512/0.005501, allocations: 259.4 kB / 248.9 MB, free: 9.953 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002933/0.005794, allocations: 143.6 kB / 249.1 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.978e-05/0.005844, allocations: 36 kB / 249.1 MB, free: 9.777 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.431e-05/0.005888, allocations: 32 kB / 249.2 MB, free: 9.746 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.933e-05/0.005977, allocations: 75.8 kB / 249.2 MB, free: 9.672 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.208e-05/0.006049, allocations: 75.81 kB / 249.3 MB, free: 9.598 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.006324, allocations: 223.2 kB / 249.5 MB, free: 9.379 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.175e-05/0.006336, allocations: 0 / 249.5 MB, free: 9.379 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.006337, allocations: 0 / 249.5 MB, free: 9.379 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.006347, allocations: 0 / 249.5 MB, free: 9.379 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0007847/0.007132, allocations: 0.5778 MB / 250.1 MB, free: 8.773 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.007165, allocations: 8.031 kB / 250.1 MB, free: 8.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.874e-05/0.007244, allocations: 60.89 kB / 250.2 MB, free: 8.707 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002462/0.00749, allocations: 190.5 kB / 250.4 MB, free: 8.496 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001946/0.007684, allocations: 343.9 kB / 250.7 MB, free: 8.094 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.007731, allocations: 32.38 kB / 250.7 MB, free: 8.062 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/0.008213, allocations: 413.6 kB / 251.1 MB, free: 7.629 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.008227, allocations: 8.141 kB / 251.1 MB, free: 7.621 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.00825, allocations: 16.12 kB / 251.1 MB, free: 7.605 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.647e-06/0.008258, allocations: 8 kB / 251.2 MB, free: 7.598 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.00852, allocations: 174.6 kB / 251.3 MB, free: 7.426 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007543/0.009274, allocations: 0.6351 MB / 252 MB, free: 6.754 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004837/0.009757, allocations: 326.8 kB / 252.3 MB, free: 6.395 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.009882, allocations: 119.4 kB / 252.4 MB, free: 6.266 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.304e-05/0.009915, allocations: 12 kB / 252.4 MB, free: 6.254 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.61e-05/0.009941, allocations: 42.55 kB / 252.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 2.174e-06/0.009943, allocations: 0 / 252.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005588/0.01553, allocations: 2.268 MB / 254.7 MB, free: 3.93 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.0156, allocations: 145 kB / 254.9 MB, free: 3.758 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.01574, allocations: 183.9 kB / 255 MB, free: 3.562 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.747e-05/0.0158, allocations: 37.7 kB / 255.1 MB, free: 3.52 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.56e-05/0.01585, allocations: 133.8 kB / 255.2 MB, free: 3.387 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.01598, allocations: 206.3 kB / 255.4 MB, free: 3.184 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.01614, allocations: 94.27 kB / 255.5 MB, free: 3.086 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.026e-05/0.01623, allocations: 342.7 kB / 255.8 MB, free: 2.742 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/0.01656, allocations: 208.1 kB / 256 MB, free: 2.535 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.01682, allocations: 290.6 kB / 256.3 MB, free: 2.227 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004734/0.01729, allocations: 0.4946 MB / 256.8 MB, free: 1.703 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.01729, allocations: 3.938 kB / 256.8 MB, free: 1.699 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006057/0.0179, allocations: 0.5324 MB / 257.4 MB, free: 1.16 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.01792, allocations: 8 kB / 257.4 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.01793, allocations: 0 / 257.4 MB, free: 1.152 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.01794, allocations: 4 kB / 257.4 MB, free: 1.148 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006152/0.01856, allocations: 187.9 kB / 257.5 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.01856, allocations: 4 kB / 257.6 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003015/0.01887, allocations: 71.86 kB / 257.6 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.562e-05/0.0189, allocations: 15.98 kB / 257.6 MB, free: 0.875 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.0001617/0.01906, allocations: 152.5 kB / 257.8 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.01922, allocations: 109.6 kB / 257.9 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.815e-05/0.0193, allocations: 67.3 kB / 258 MB, free: 0.5352 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.0193, allocations: 12 kB / 258 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.01931, allocations: 0 / 258 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.01931, allocations: 3.984 kB / 258 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001517/0.02083, allocations: 1.189 MB / 259.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.02084, allocations: 8 kB / 259.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.0212, allocations: 195.8 kB / 259.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.108e-05/0.02129, allocations: 55.72 kB / 259.4 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.0213, allocations: 12 kB / 259.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.152e-05/0.02134, allocations: 24 kB / 259.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.358e-05/0.02135, allocations: 19.92 kB / 259.5 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/0.02136, allocations: 15.94 kB / 259.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000643/0.022, allocations: 0.8357 MB / 260.3 MB, free: 13.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.844e-05/0.02205, allocations: 31.98 kB / 260.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.02228, allocations: 59.95 kB / 260.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.0224, allocations: 95.56 kB / 260.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.513e-05/0.02243, allocations: 24 kB / 260.5 MB, free: 13.65 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.352e-05/0.02247, allocations: 50.81 kB / 260.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02247, allocations: 0 / 260.6 MB, free: 13.6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003327/0.0228, allocations: 119.9 kB / 260.7 MB, free: 13.48 MB / 266.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.0001223/0.02293, allocations: 116.2 kB / 260.8 MB, free: 13.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005104/0.02344, allocations: 477.9 kB / 261.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/0.02345, allocations: 4 kB / 261.3 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.02366, allocations: 196.8 kB / 261.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005705/0.02423, allocations: 391.1 kB / 261.9 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002374/0.02661, allocations: 1.13 MB / 263 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.121e-05/0.0267, allocations: 130.8 kB / 263.1 MB, free: 10.83 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002621/0.02696, allocations: 75.22 kB / 263.2 MB, free: 10.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002939/0.02725, allocations: 115.3 kB / 263.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.02726, allocations: 0 / 263.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Templates: time 0.01015/0.03741, allocations: 9.417 MB / 272.7 MB, free: 1.277 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8103364296257496]