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.002588/0.002588, allocations: 91.61 kB / 20.96 MB, free: 3.457 MB / 18.57 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.002737/0.002737, allocations: 165.3 kB / 24.28 MB, free: 144 kB / 18.57 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.516/1.516, allocations: 177.1 MB / 204.6 MB, free: 5.598 MB / 186.7 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 1.442e-06/1.442e-06, allocations: 0 / 272.3 MB, free: 1.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.223e-05/3.367e-05, allocations: 6.312 kB / 272.3 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004208/0.004242, allocations: 2.337 MB / 274.6 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.006068, allocations: 0.8065 MB / 275.4 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.006247, allocations: 15.94 kB / 275.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003373/0.006584, allocations: 55.55 kB / 275.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002283/0.006813, allocations: 59.5 kB / 275.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005402/0.007353, allocations: 183.4 kB / 275.7 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007723/0.008125, allocations: 387.5 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002039/0.008329, allocations: 76.33 kB / 276.2 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004399/0.008769, allocations: 231.5 kB / 276.4 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002658/0.009035, allocations: 139.6 kB / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.055e-05/0.009125, allocations: 43.92 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.511e-05/0.00919, allocations: 32 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001489/0.009339, allocations: 107.6 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.009479, allocations: 103.7 kB / 276.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005193/0.009998, allocations: 354.9 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.01, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.006e-05/0.01001, allocations: 4 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.01002, allocations: 0 / 277.2 MB, free: 12.93 MB / 266.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.001406/0.01142, allocations: 0.6595 MB / 277.9 MB, free: 12.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.01147, allocations: 8.031 kB / 277.9 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.01161, allocations: 76.75 kB / 277.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004148/0.01203, allocations: 213.2 kB / 278.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003814/0.01241, allocations: 343.9 kB / 278.5 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.268e-05/0.01248, allocations: 32.38 kB / 278.5 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.01383, allocations: 0.5488 MB / 279.1 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.01385, allocations: 4.125 kB / 279.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.471e-05/0.0139, allocations: 16.12 kB / 279.1 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.01391, allocations: 8 kB / 279.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001525/0.01543, allocations: 459.6 kB / 279.5 MB, free: 10.42 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001767/0.0172, allocations: 0.9997 MB / 280.5 MB, free: 9.359 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001574/0.01878, allocations: 472.4 kB / 281 MB, free: 8.848 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006811/0.01946, allocations: 234.7 kB / 281.2 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.598e-05/0.01951, allocations: 12 kB / 281.2 MB, free: 8.59 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.154e-05/0.01955, allocations: 45.33 kB / 281.3 MB, free: 8.535 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.984e-06/0.01956, allocations: 7.938 kB / 281.3 MB, free: 8.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.01789/0.03745, allocations: 3.343 MB / 284.6 MB, free: 5.18 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/0.0376, allocations: 149 kB / 284.8 MB, free: 5.004 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.03793, allocations: 267.4 kB / 285 MB, free: 4.723 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.935e-05/0.03801, allocations: 41.64 kB / 285.1 MB, free: 4.676 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000154/0.03816, allocations: 192.5 kB / 285.3 MB, free: 4.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002565/0.03842, allocations: 210.3 kB / 285.5 MB, free: 4.273 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003159/0.03874, allocations: 120 kB / 285.6 MB, free: 4.148 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003206/0.03906, allocations: 0.5274 MB / 286.1 MB, free: 3.609 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/0.04072, allocations: 0.5673 MB / 286.7 MB, free: 3.043 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001785/0.0425, allocations: 0.6874 MB / 287.4 MB, free: 2.316 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00321/0.04571, allocations: 1.12 MB / 288.5 MB, free: 1.156 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.04572, allocations: 0 / 288.5 MB, free: 1.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.1369/0.1827, allocations: 1.262 MB / 289.8 MB, free: 28.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.1827, allocations: 6.438 kB / 289.8 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.255e-05/0.1827, allocations: 1.469 kB / 289.8 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.926e-05/0.1827, allocations: 5.062 kB / 289.8 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.184, allocations: 159 kB / 289.9 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.1841, allocations: 9.125 kB / 289.9 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008904/0.1849, allocations: 74.25 kB / 290 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.808e-05/0.185, allocations: 17.23 kB / 290 MB, free: 28.17 MB / 266.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.0003156/0.1853, allocations: 208.8 kB / 290.2 MB, free: 28.01 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004332/0.1858, allocations: 181.6 kB / 290.4 MB, free: 27.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001923/0.186, allocations: 63.81 kB / 290.5 MB, free: 27.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.186, allocations: 7.969 kB / 290.5 MB, free: 27.98 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.186, allocations: 5.438 kB / 290.5 MB, free: 27.98 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.186, allocations: 4.875 kB / 290.5 MB, free: 27.98 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00436/0.1904, allocations: 2.054 MB / 292.5 MB, free: 27.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.1904, allocations: 9.531 kB / 292.5 MB, free: 27.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007076/0.1911, allocations: 171.9 kB / 292.7 MB, free: 27.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.856e-05/0.1911, allocations: 12.84 kB / 292.7 MB, free: 27.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/0.1911, allocations: 24.53 kB / 292.8 MB, free: 27.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.841e-05/0.1912, allocations: 19.58 kB / 292.8 MB, free: 27.06 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/0.1912, allocations: 16 kB / 292.8 MB, free: 27.06 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002905/0.1941, allocations: 1.665 MB / 294.5 MB, free: 25.95 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00021/0.1943, allocations: 87.06 kB / 294.5 MB, free: 25.91 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-05/0.1944, allocations: 26.22 kB / 294.6 MB, free: 25.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005353/0.1949, allocations: 60.8 kB / 294.6 MB, free: 25.89 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000223/0.1951, allocations: 103 kB / 294.7 MB, free: 25.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.448e-05/0.1952, allocations: 30.92 kB / 294.8 MB, free: 25.85 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000133/0.1953, allocations: 183.3 kB / 294.9 MB, free: 25.71 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1953, allocations: 0 / 294.9 MB, free: 25.71 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006299/0.1959, allocations: 115.9 kB / 295 MB, free: 25.7 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.000154/0.1961, allocations: 144.1 kB / 295.2 MB, free: 25.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002699/0.1988, allocations: 0.9654 MB / 296.2 MB, free: 25.35 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/0.1988, allocations: 2.469 kB / 296.2 MB, free: 25.35 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008889/0.1997, allocations: 309.4 kB / 296.5 MB, free: 25.26 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009509/0.2006, allocations: 152.2 kB / 296.6 MB, free: 25.22 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002211/0.2029, allocations: 1.238 MB / 297.8 MB, free: 24.22 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.2031, allocations: 211.7 kB / 298 MB, free: 24.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000471/0.2036, allocations: 87.14 kB / 298.1 MB, free: 24.1 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002866/0.2039, allocations: 38.83 kB / 298.2 MB, free: 24.09 MB / 266.7 MB Notification: Performance of SimCode: time 1.223e-06/0.2039, allocations: 0 / 298.2 MB, free: 24.09 MB / 266.7 MB Notification: Performance of Templates: time 0.01273/0.2166, allocations: 8.806 MB / 307 MB, free: 19.04 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 -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","/var/lib/jenkins/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: 4.9038567210081965]