Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001365/0.001365, allocations: 71.75 kB / 21.24 MB, free: 400 kB / 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.001415/0.001415, allocations: 169.2 kB / 24.5 MB, free: 3.453 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.485/1.485, allocations: 177.2 MB / 204.9 MB, free: 8.949 MB / 190.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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002424/0.002424, allocations: 51.84 kB / 325.5 MB, free: 288 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1197, allocations: 53.33 MB / 378.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003812/0.1235, allocations: 2.076 MB / 381 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001441/0.1249, allocations: 0.6549 MB / 381.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001926/0.1251, allocations: 7.938 kB / 381.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.1254, allocations: 39.7 kB / 381.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.1257, allocations: 59.55 kB / 381.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.1261, allocations: 127.8 kB / 381.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005313/0.1267, allocations: 339.2 kB / 382.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.1269, allocations: 58.97 kB / 382.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000376/0.1272, allocations: 151.5 kB / 382.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.1275, allocations: 143.4 kB / 382.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.333e-05/0.1276, allocations: 28 kB / 382.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.89e-05/0.1277, allocations: 32 kB / 382.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.1278, allocations: 95.66 kB / 382.7 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.1279, allocations: 103.6 kB / 382.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004268/0.1283, allocations: 290.9 kB / 383.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.1283, allocations: 4 kB / 383.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1284, allocations: 0 / 383.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.1284, allocations: 0 / 383.1 MB, free: 11.52 MB / 350.1 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.001305/0.1297, allocations: 0.5088 MB / 383.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1297, allocations: 8.031 kB / 383.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.426e-05/0.1298, allocations: 36.73 kB / 383.6 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004367/0.1302, allocations: 194 kB / 383.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003349/0.1306, allocations: 351.8 kB / 384.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.537e-05/0.1306, allocations: 27.94 kB / 384.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00095/0.1316, allocations: 366.6 kB / 384.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.1316, allocations: 11.88 kB / 384.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.1316, allocations: 8 kB / 384.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.854e-06/0.1316, allocations: 4 kB / 384.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001494/0.1331, allocations: 0.4899 MB / 385 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.1349, allocations: 0.853 MB / 385.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.1361, allocations: 314.9 kB / 386.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005858/0.1367, allocations: 164.7 kB / 386.4 MB, free: 8.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.952e-05/0.1367, allocations: 4 kB / 386.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.1368, allocations: 34.56 kB / 386.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.114e-06/0.1368, allocations: 3.938 kB / 386.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02805/0.1648, allocations: 5.677 MB / 392.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.959e-05/0.1649, allocations: 75.77 kB / 392.2 MB, free: 2.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003005/0.1652, allocations: 206.9 kB / 392.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-05/0.1652, allocations: 37.7 kB / 392.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000112/0.1653, allocations: 145 kB / 392.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001933/0.1655, allocations: 186.4 kB / 392.7 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.1658, allocations: 90.34 kB / 392.8 MB, free: 1.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1659, allocations: 334.8 kB / 393.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.1674, allocations: 477 kB / 393.6 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00145/0.1688, allocations: 0.5186 MB / 394.1 MB, free: 148 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.1714, allocations: 0.8142 MB / 394.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1714, allocations: 0 / 394.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002996/0.1744, allocations: 1.001 MB / 395.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.1744, allocations: 8 kB / 395.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1744, allocations: 0 / 395.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1744, allocations: 4 kB / 395.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009976/0.1754, allocations: 175.6 kB / 396.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.1754, allocations: 4 kB / 396.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007379/0.1762, allocations: 87.91 kB / 396.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.998e-05/0.1762, allocations: 16 kB / 396.2 MB, free: 14.02 MB / 366.1 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.0002537/0.1765, allocations: 169.6 kB / 396.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.23e-05/0.1766, allocations: 27.81 kB / 396.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1767, allocations: 47.31 kB / 396.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.1767, allocations: 7.938 kB / 396.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.1767, allocations: 0 / 396.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.1767, allocations: 7.984 kB / 396.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004365/0.1811, allocations: 1.694 MB / 398.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/0.1811, allocations: 8 kB / 398.2 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000675/0.1818, allocations: 152.5 kB / 398.3 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.66e-05/0.1818, allocations: 12 kB / 398.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.1818, allocations: 16 kB / 398.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.589e-05/0.1818, allocations: 19.92 kB / 398.4 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.384e-05/0.1819, allocations: 15.88 kB / 398.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003065/0.1849, allocations: 1.248 MB / 399.6 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.1851, allocations: 63.86 kB / 399.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.1852, allocations: 31.98 kB / 399.7 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005621/0.1857, allocations: 79.84 kB / 399.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.1859, allocations: 83.81 kB / 399.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.486e-05/0.1859, allocations: 27.98 kB / 399.9 MB, free: 10.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001773/0.1861, allocations: 152.3 kB / 400.1 MB, free: 9.883 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1861, allocations: 4 kB / 400.1 MB, free: 9.879 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004976/0.1866, allocations: 92 kB / 400.2 MB, free: 9.789 MB / 366.1 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.00016/0.1868, allocations: 135 kB / 400.3 MB, free: 9.648 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002432/0.1892, allocations: 0.7867 MB / 401.1 MB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/0.1892, allocations: 4 kB / 401.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001015/0.1902, allocations: 332.8 kB / 401.4 MB, free: 8.539 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006045/0.1908, allocations: 59.91 kB / 401.5 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002229/0.1931, allocations: 1.025 MB / 402.5 MB, free: 7.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001951/0.1933, allocations: 180.2 kB / 402.7 MB, free: 7.121 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003773/0.1936, allocations: 78.88 kB / 402.7 MB, free: 7.047 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002588/0.1939, allocations: 32.5 kB / 402.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1939, allocations: 0 / 402.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of Templates: time 0.01114/0.205, allocations: 6.106 MB / 408.9 MB, free: 0.9805 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.5645536669762805]