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.001373/0.001373, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001718/0.001718, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.547/1.547, allocations: 230.6 MB / 258.3 MB, free: 7.965 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.001815/0.001815, allocations: 43.92 kB / 379 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3138, allocations: 53.37 MB / 432.4 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004339/0.3182, allocations: 2.389 MB / 434.8 MB, free: 4.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001826/0.32, allocations: 0.8494 MB / 435.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001866/0.3202, allocations: 7.938 kB / 435.6 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003479/0.3205, allocations: 55.56 kB / 435.7 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.3208, allocations: 67.48 kB / 435.7 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005906/0.3214, allocations: 171.7 kB / 435.9 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005077/0.3219, allocations: 391.5 kB / 436.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002191/0.3221, allocations: 68.36 kB / 436.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003456/0.3224, allocations: 175.4 kB / 436.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000288/0.3227, allocations: 191.2 kB / 436.7 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.321e-05/0.3228, allocations: 36 kB / 436.8 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.522e-05/0.3228, allocations: 36 kB / 436.8 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001225/0.323, allocations: 87.73 kB / 436.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.3231, allocations: 151.2 kB / 437 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004592/0.3236, allocations: 339.8 kB / 437.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3236, allocations: 0 / 437.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3236, allocations: 0 / 437.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.3236, allocations: 0 / 437.4 MB, free: 1.906 MB / 334.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.001317/0.3249, allocations: 0.5513 MB / 437.9 MB, free: 1.328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.325, allocations: 8.031 kB / 437.9 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.3251, allocations: 52.69 kB / 438 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004772/0.3255, allocations: 214.5 kB / 438.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003431/0.3259, allocations: 351.8 kB / 438.5 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.08e-05/0.326, allocations: 28.38 kB / 438.5 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.3272, allocations: 0.5622 MB / 439.1 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.3272, allocations: 0 / 439.1 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.921e-05/0.3273, allocations: 20.06 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.3273, allocations: 4 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/0.3286, allocations: 0.508 MB / 439.6 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.3302, allocations: 0.953 MB / 440.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00156/0.3318, allocations: 482.4 kB / 441.1 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006946/0.3325, allocations: 239.4 kB / 441.3 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-05/0.3326, allocations: 8.141 kB / 441.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.391e-05/0.3326, allocations: 46.48 kB / 441.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.635e-06/0.3326, allocations: 0 / 441.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03735/0.37, allocations: 5.725 MB / 447.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.3701, allocations: 152.9 kB / 447.2 MB, free: 7.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.3704, allocations: 208.7 kB / 447.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.057e-05/0.3704, allocations: 33.7 kB / 447.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.3706, allocations: 145.8 kB / 447.6 MB, free: 7.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002238/0.3708, allocations: 198.4 kB / 447.8 MB, free: 7.125 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002832/0.3711, allocations: 114.6 kB / 447.9 MB, free: 7.008 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3712, allocations: 346.8 kB / 448.2 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.3728, allocations: 0.6149 MB / 448.9 MB, free: 6.043 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001669/0.3745, allocations: 0.7963 MB / 449.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003002/0.3775, allocations: 1.255 MB / 450.9 MB, free: 3.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.3775, allocations: 0 / 450.9 MB, free: 3.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003565/0.381, allocations: 1.398 MB / 452.3 MB, free: 2.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.3811, allocations: 12.03 kB / 452.3 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.378e-05/0.3811, allocations: 4 kB / 452.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/0.3811, allocations: 8 kB / 452.3 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/0.3825, allocations: 215.7 kB / 452.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.168e-05/0.3825, allocations: 11.94 kB / 452.6 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000952/0.3834, allocations: 107.7 kB / 452.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.162e-05/0.3835, allocations: 28 kB / 452.7 MB, free: 2.055 MB / 350.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.0003803/0.3839, allocations: 181.6 kB / 452.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003373/0.3842, allocations: 153.4 kB / 453 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001807/0.3844, allocations: 67.3 kB / 453.1 MB, free: 1.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.648e-06/0.3844, allocations: 8 kB / 453.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.3844, allocations: 0 / 453.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.3845, allocations: 3.984 kB / 453.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005/0.3895, allocations: 2.14 MB / 455.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/0.3895, allocations: 8 kB / 455.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007703/0.3902, allocations: 179.7 kB / 455.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.965e-05/0.3903, allocations: 16 kB / 455.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.263e-05/0.3903, allocations: 24 kB / 455.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-05/0.3903, allocations: 23.86 kB / 455.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.641e-05/0.3903, allocations: 20.19 kB / 455.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003245/0.3936, allocations: 1.549 MB / 457.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002365/0.3938, allocations: 95.5 kB / 457.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.873e-05/0.3939, allocations: 28.06 kB / 457.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000574/0.3945, allocations: 79.91 kB / 457.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.3947, allocations: 99.64 kB / 457.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.955e-05/0.3947, allocations: 32 kB / 457.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001532/0.3949, allocations: 141.1 kB / 457.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3949, allocations: 0 / 457.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006895/0.3956, allocations: 124 kB / 457.6 MB, free: 12.77 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.0001921/0.3958, allocations: 135 kB / 457.8 MB, free: 12.62 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002795/0.3986, allocations: 1.026 MB / 458.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.3986, allocations: 0 / 458.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.3996, allocations: 334.4 kB / 459.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009706/0.4006, allocations: 134.8 kB / 459.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.4033, allocations: 1.207 MB / 460.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.4038, allocations: 0.8167 MB / 461.3 MB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.4042, allocations: 43.42 kB / 461.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of SimCode: time 1.442e-06/0.4042, allocations: 0 / 461.3 MB, free: 8.879 MB / 366.1 MB Notification: Performance of Templates: time 0.0128/0.417, allocations: 7.241 MB / 468.6 MB, free: 1.656 MB / 366.1 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=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.14558458304964]