Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00103/0.00103, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002049/0.003078, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009628/0.0009628, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001198/0.002161, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9513/0.9513, allocations: 177.5 MB / 190 MB, free: 4.766 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08863/1.04, allocations: 53.87 MB / 243.9 MB, free: 14.83 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.789e-05/1.927e-05, allocations: 5.406 kB / 245.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002768/0.002787, allocations: 2.213 MB / 247.4 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00398/0.006767, allocations: 0.6817 MB / 248.1 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.006872, allocations: 4 kB / 248.1 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.007137, allocations: 51.58 kB / 248.1 MB, free: 10.6 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001258/0.007262, allocations: 55.56 kB / 248.2 MB, free: 10.54 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002673/0.00753, allocations: 123.7 kB / 248.3 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003116/0.007841, allocations: 339.2 kB / 248.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.007962, allocations: 54.52 kB / 248.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002941/0.008256, allocations: 231.4 kB / 248.9 MB, free: 9.812 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001832/0.008439, allocations: 127.7 kB / 249 MB, free: 9.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.133e-05/0.008481, allocations: 28 kB / 249.1 MB, free: 9.66 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.195e-05/0.008523, allocations: 32 kB / 249.1 MB, free: 9.629 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.173e-05/0.008594, allocations: 63.8 kB / 249.2 MB, free: 9.566 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.69e-05/0.008661, allocations: 63.88 kB / 249.2 MB, free: 9.504 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.008887, allocations: 191.4 kB / 249.4 MB, free: 9.316 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.008895, allocations: 0 / 249.4 MB, free: 9.316 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.008896, allocations: 4 kB / 249.4 MB, free: 9.312 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.955e-06/0.008904, allocations: 0 / 249.4 MB, free: 9.312 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.003849/0.01275, allocations: 0.511 MB / 249.9 MB, free: 8.777 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.01279, allocations: 12.03 kB / 249.9 MB, free: 8.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.471e-05/0.01287, allocations: 52.89 kB / 250 MB, free: 8.715 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002139/0.01309, allocations: 173.9 kB / 250.2 MB, free: 8.52 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.01328, allocations: 335.8 kB / 250.5 MB, free: 8.125 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.132e-05/0.01334, allocations: 24.36 kB / 250.5 MB, free: 8.102 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003667/0.01371, allocations: 262.5 kB / 250.8 MB, free: 7.828 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.01372, allocations: 0 / 250.8 MB, free: 7.828 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.01374, allocations: 8 kB / 250.8 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-06/0.01375, allocations: 4 kB / 250.8 MB, free: 7.816 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003011/0.01405, allocations: 164.1 kB / 250.9 MB, free: 7.656 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009016/0.01495, allocations: 0.6201 MB / 251.6 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003451/0.0184, allocations: 204 kB / 251.8 MB, free: 6.797 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.01853, allocations: 52.8 kB / 251.8 MB, free: 6.742 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.01856, allocations: 11.92 kB / 251.8 MB, free: 6.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.425e-05/0.01858, allocations: 38.56 kB / 251.9 MB, free: 6.684 MB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 1.523e-06/0.01858, allocations: 4 kB / 251.9 MB, free: 6.68 MB / 250.7 MB Notification: Performance of matching and sorting (n=53): time 0.01479/0.03337, allocations: 3.355 MB / 255.2 MB, free: 3.266 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.0334, allocations: 55.91 kB / 255.3 MB, free: 3.199 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.03354, allocations: 187.3 kB / 255.5 MB, free: 3.004 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.687e-05/0.03357, allocations: 29.7 kB / 255.5 MB, free: 2.969 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.358e-05/0.03364, allocations: 149 kB / 255.6 MB, free: 2.82 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.03376, allocations: 190.3 kB / 255.8 MB, free: 2.633 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/0.03389, allocations: 90.3 kB / 255.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.899e-05/0.03396, allocations: 346.7 kB / 256.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.03413, allocations: 136.1 kB / 256.4 MB, free: 2.055 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.03435, allocations: 191.3 kB / 256.6 MB, free: 1.855 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004367/0.03479, allocations: 335.6 kB / 256.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.03479, allocations: 0 / 256.9 MB, free: 1.512 MB / 250.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005827/0.03537, allocations: 397.2 kB / 257.3 MB, free: 1.113 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.03539, allocations: 7.938 kB / 257.3 MB, free: 1.105 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.0354, allocations: 4 kB / 257.3 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.03542, allocations: 0 / 257.3 MB, free: 1.102 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000633/0.03605, allocations: 171.8 kB / 257.5 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.346e-06/0.03606, allocations: 7.984 kB / 257.5 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.03638, allocations: 72.03 kB / 257.5 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/0.03641, allocations: 12 kB / 257.5 MB, free: 0.8438 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0001407/0.03655, allocations: 144.5 kB / 257.7 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.137e-05/0.03664, allocations: 31.97 kB / 257.7 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.24e-05/0.03671, allocations: 51.31 kB / 257.8 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.03671, allocations: 4 kB / 257.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.03672, allocations: 0 / 257.8 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.03672, allocations: 7.969 kB / 257.8 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001563/0.03829, allocations: 1.023 MB / 258.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.953e-06/0.03829, allocations: 12.16 kB / 258.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.03858, allocations: 143.8 kB / 259 MB, free: 15.29 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.41e-05/0.03866, allocations: 47.78 kB / 259 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.03867, allocations: 12 kB / 259 MB, free: 15.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.03869, allocations: 16 kB / 259 MB, free: 15.21 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.825e-06/0.0387, allocations: 15.94 kB / 259 MB, free: 15.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/0.0387, allocations: 11.94 kB / 259.1 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005347/0.03924, allocations: 0.6893 MB / 259.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.03927, allocations: 20 kB / 259.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.03947, allocations: 59.94 kB / 259.8 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.03958, allocations: 83.64 kB / 259.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.03959, allocations: 20 kB / 259.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.198e-05/0.03964, allocations: 45.06 kB / 260 MB, free: 14.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03964, allocations: 4 kB / 260 MB, free: 14.13 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002537/0.03989, allocations: 100 kB / 260.1 MB, free: 14.04 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001038/0.03999, allocations: 104.2 kB / 260.2 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003855/0.04038, allocations: 348.7 kB / 260.5 MB, free: 13.58 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/0.04039, allocations: 12.3 kB / 260.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001982/0.04059, allocations: 188.3 kB / 260.7 MB, free: 13.39 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004012/0.04099, allocations: 304.1 kB / 261 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.04315, allocations: 0.9543 MB / 262 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.147e-05/0.04322, allocations: 117.7 kB / 262.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002072/0.04343, allocations: 63.2 kB / 262.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.04365, allocations: 107.3 kB / 262.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of SimCode: time 8.11e-07/0.04365, allocations: 0 / 262.2 MB, free: 11.66 MB / 266.7 MB Notification: Performance of Templates: time 0.007337/0.05099, allocations: 6.673 MB / 268.9 MB, free: 5.047 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.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.506039154715836]