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.001889/0.001889, allocations: 115.1 kB / 18.45 MB, free: 4.605 MB / 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.002397/0.002397, allocations: 207.3 kB / 21.41 MB, free: 1.648 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.644/1.644, allocations: 230.6 MB / 254.8 MB, free: 15.21 MB / 206.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.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 0.002365/0.002365, allocations: 47.92 kB / 374.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1389, allocations: 53.34 MB / 427.5 MB, free: 4.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004847/0.1437, allocations: 2.372 MB / 429.8 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002141/0.1459, allocations: 0.8455 MB / 430.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003188/0.1462, allocations: 15.88 kB / 430.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004255/0.1466, allocations: 47.58 kB / 430.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002879/0.1469, allocations: 71.48 kB / 430.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006446/0.1476, allocations: 179.6 kB / 431 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005076/0.1481, allocations: 367.6 kB / 431.3 MB, free: 424 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002298/0.1483, allocations: 75.84 kB / 431.4 MB, free: 344 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003608/0.1487, allocations: 179.4 kB / 431.6 MB, free: 164 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004032/0.1491, allocations: 175.2 kB / 431.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.19e-05/0.1491, allocations: 40 kB / 431.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.41e-05/0.1492, allocations: 32 kB / 431.8 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.1493, allocations: 103.7 kB / 431.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001606/0.1495, allocations: 143.2 kB / 432.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005429/0.15, allocations: 334.6 kB / 432.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.764e-06/0.15, allocations: 4 kB / 432.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.15, allocations: 0 / 432.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.387e-06/0.15, allocations: 4 kB / 432.4 MB, free: 15.34 MB / 366.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.001395/0.1514, allocations: 0.6236 MB / 433 MB, free: 14.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.1515, allocations: 12.03 kB / 433.1 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.38e-05/0.1516, allocations: 40.7 kB / 433.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006363/0.1522, allocations: 284.4 kB / 433.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.1525, allocations: 138.3 kB / 433.5 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.708e-05/0.1525, allocations: 32.38 kB / 433.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.1539, allocations: 0.5622 MB / 434.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.1539, allocations: 0 / 434.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.192e-05/0.1539, allocations: 16 kB / 434.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1539, allocations: 8 kB / 434.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.1554, allocations: 0.5074 MB / 434.6 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001884/0.1573, allocations: 1.014 MB / 435.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00175/0.1591, allocations: 482.5 kB / 436.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006722/0.1597, allocations: 239.4 kB / 436.3 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.587e-05/0.1598, allocations: 7.938 kB / 436.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.1598, allocations: 38.56 kB / 436.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.645e-06/0.1598, allocations: 0 / 436.4 MB, free: 11.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.04099/0.2008, allocations: 5.723 MB / 442.1 MB, free: 5.367 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/0.201, allocations: 153 kB / 442.3 MB, free: 5.188 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002893/0.2013, allocations: 199.3 kB / 442.5 MB, free: 4.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001108/0.2014, allocations: 41.7 kB / 442.5 MB, free: 4.934 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.2015, allocations: 141.8 kB / 442.6 MB, free: 4.789 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002612/0.2018, allocations: 194.4 kB / 442.8 MB, free: 4.598 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003577/0.2022, allocations: 114.6 kB / 442.9 MB, free: 4.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.2023, allocations: 346.8 kB / 443.3 MB, free: 4.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001767/0.2041, allocations: 0.6149 MB / 443.9 MB, free: 3.52 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/0.206, allocations: 0.7963 MB / 444.7 MB, free: 2.648 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003472/0.2095, allocations: 1.251 MB / 445.9 MB, free: 1.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.279e-05/0.2095, allocations: 3.938 kB / 445.9 MB, free: 1.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.285/0.4945, allocations: 1.395 MB / 447.3 MB, free: 24.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.4945, allocations: 8.719 kB / 447.3 MB, free: 24.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/0.4945, allocations: 6.625 kB / 447.4 MB, free: 24.9 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.277e-05/0.4946, allocations: 8.344 kB / 447.4 MB, free: 24.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.4961, allocations: 211.2 kB / 447.6 MB, free: 24.9 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.696e-05/0.4961, allocations: 14.56 kB / 447.6 MB, free: 24.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.4971, allocations: 103.4 kB / 447.7 MB, free: 24.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.649e-05/0.4972, allocations: 27.58 kB / 447.7 MB, free: 24.9 MB / 366.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.0003442/0.4976, allocations: 184 kB / 447.9 MB, free: 24.79 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003487/0.4979, allocations: 162.6 kB / 448.1 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002107/0.4981, allocations: 62.11 kB / 448.1 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.4981, allocations: 9.031 kB / 448.1 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.4981, allocations: 0.5938 kB / 448.1 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.4982, allocations: 8.328 kB / 448.1 MB, free: 24.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004696/0.5028, allocations: 2.165 MB / 450.3 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.262e-05/0.5029, allocations: 10.09 kB / 450.3 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008166/0.5037, allocations: 186.8 kB / 450.5 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-05/0.5037, allocations: 14.53 kB / 450.5 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.983e-05/0.5038, allocations: 22.5 kB / 450.5 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-05/0.5038, allocations: 20.31 kB / 450.5 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.945e-05/0.5038, allocations: 22.34 kB / 450.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003349/0.5072, allocations: 1.553 MB / 452.1 MB, free: 23.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/0.5074, allocations: 173.2 kB / 452.3 MB, free: 23.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.5075, allocations: 25.69 kB / 452.3 MB, free: 23.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006191/0.5081, allocations: 74.05 kB / 452.4 MB, free: 23.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002306/0.5084, allocations: 101.5 kB / 452.5 MB, free: 23.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.012e-05/0.5084, allocations: 31.02 kB / 452.5 MB, free: 23.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001379/0.5085, allocations: 141.7 kB / 452.7 MB, free: 23.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5085, allocations: 0 / 452.7 MB, free: 23.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000755/0.5093, allocations: 122.2 kB / 452.8 MB, free: 23.18 MB / 366.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.0001732/0.5095, allocations: 134.5 kB / 452.9 MB, free: 23.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003032/0.5125, allocations: 1.037 MB / 453.9 MB, free: 22.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/0.5125, allocations: 1.281 kB / 453.9 MB, free: 22.71 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.5136, allocations: 333.3 kB / 454.3 MB, free: 22.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.5146, allocations: 122.8 kB / 454.4 MB, free: 22.58 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.5172, allocations: 1.209 MB / 455.6 MB, free: 21.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.5176, allocations: 0.8132 MB / 456.4 MB, free: 20.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004372/0.518, allocations: 45.31 kB / 456.5 MB, free: 20.96 MB / 366.1 MB Notification: Performance of SimCode: time 1.773e-06/0.518, allocations: 0 / 456.5 MB, free: 20.96 MB / 366.1 MB Notification: Performance of Templates: time 0.01589/0.5339, allocations: 7.22 MB / 463.7 MB, free: 19.61 MB / 366.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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: 8.591759562987136]