Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009411/0.0009411, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009942/0.0009942, allocations: 143.5 kB / 24.97 MB, free: 9.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9662/0.9662, allocations: 173.4 MB / 201.5 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.02e-05/2.154e-05, allocations: 2.312 kB / 268.1 MB, free: 6.734 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003012/0.003034, allocations: 2.343 MB / 270.4 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.00422, allocations: 0.7986 MB / 271.2 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.004353, allocations: 8 kB / 271.2 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002582/0.004612, allocations: 51.55 kB / 271.3 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.004788, allocations: 67.45 kB / 271.3 MB, free: 3.441 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.005174, allocations: 183.4 kB / 271.5 MB, free: 3.262 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003216/0.005495, allocations: 383.5 kB / 271.9 MB, free: 2.887 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.005655, allocations: 72.33 kB / 271.9 MB, free: 2.816 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.005891, allocations: 223.5 kB / 272.2 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001723/0.006063, allocations: 151.6 kB / 272.3 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.583e-05/0.006109, allocations: 36 kB / 272.3 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.441e-05/0.006144, allocations: 36 kB / 272.4 MB, free: 2.379 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.404e-05/0.006228, allocations: 103.6 kB / 272.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.152e-05/0.006309, allocations: 103.8 kB / 272.6 MB, free: 2.176 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000259/0.006568, allocations: 263 kB / 272.8 MB, free: 1.918 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.044e-06/0.00657, allocations: 0 / 272.8 MB, free: 1.918 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.32e-07/0.006571, allocations: 0 / 272.8 MB, free: 1.918 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.006575, allocations: 0 / 272.8 MB, free: 1.918 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0007694/0.007345, allocations: 0.6442 MB / 273.5 MB, free: 1.238 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.007377, allocations: 8.031 kB / 273.5 MB, free: 1.23 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.986e-05/0.007467, allocations: 72.75 kB / 273.6 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000272/0.007739, allocations: 220.6 kB / 273.8 MB, free: 0.918 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/0.007944, allocations: 343.9 kB / 274.1 MB, free: 0.5117 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.007992, allocations: 28.38 kB / 274.1 MB, free: 496 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006034/0.008595, allocations: 461.5 kB / 274.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.528e-05/0.00861, allocations: 8.141 kB / 274.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.461e-05/0.008635, allocations: 12.06 kB / 274.6 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.008645, allocations: 8 kB / 274.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003875/0.009032, allocations: 243.7 kB / 274.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008879/0.00992, allocations: 0.9251 MB / 275.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005627/0.01048, allocations: 340.7 kB / 276.1 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001803/0.01066, allocations: 158.6 kB / 276.3 MB, free: 14.19 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.507e-05/0.0107, allocations: 11.98 kB / 276.3 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.01072, allocations: 45.33 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.542e-06/0.01072, allocations: 0 / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006962/0.01768, allocations: 2.64 MB / 279 MB, free: 11.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.01775, allocations: 145 kB / 279.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001865/0.01794, allocations: 238.6 kB / 279.3 MB, free: 11.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.262e-05/0.018, allocations: 41.7 kB / 279.4 MB, free: 11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.405e-05/0.01807, allocations: 196.4 kB / 279.6 MB, free: 10.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.0182, allocations: 186.3 kB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001713/0.01837, allocations: 103.9 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.01848, allocations: 0.5117 MB / 280.4 MB, free: 9.984 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004283/0.01891, allocations: 321.2 kB / 280.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004719/0.01938, allocations: 432 kB / 281.1 MB, free: 9.211 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007733/0.02016, allocations: 0.6435 MB / 281.7 MB, free: 8.527 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.02016, allocations: 0 / 281.7 MB, free: 8.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001057/0.02122, allocations: 0.7824 MB / 282.5 MB, free: 7.738 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.02123, allocations: 8 kB / 282.5 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.02124, allocations: 0 / 282.5 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.02125, allocations: 4.219 kB / 282.5 MB, free: 7.727 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005856/0.02184, allocations: 167.7 kB / 282.7 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.02185, allocations: 4 kB / 282.7 MB, free: 7.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003663/0.02221, allocations: 75.91 kB / 282.8 MB, free: 7.484 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/0.02231, allocations: 23.98 kB / 282.8 MB, free: 7.461 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.0001863/0.0225, allocations: 196.3 kB / 283 MB, free: 7.258 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002306/0.02273, allocations: 153.4 kB / 283.1 MB, free: 7.102 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.488e-05/0.02281, allocations: 67.31 kB / 283.2 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.02282, allocations: 8 kB / 283.2 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.02283, allocations: 0 / 283.2 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.02283, allocations: 3.984 kB / 283.2 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.02472, allocations: 1.512 MB / 284.7 MB, free: 5.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.02472, allocations: 12.06 kB / 284.7 MB, free: 5.285 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003819/0.0251, allocations: 167.7 kB / 284.9 MB, free: 5.121 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.819e-06/0.02511, allocations: 16 kB / 284.9 MB, free: 5.105 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.02515, allocations: 24 kB / 285 MB, free: 5.082 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.918e-06/0.02516, allocations: 19.92 kB / 285 MB, free: 5.062 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.02516, allocations: 15.94 kB / 285 MB, free: 5.047 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.02622, allocations: 1.233 MB / 286.2 MB, free: 3.613 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.02634, allocations: 87.7 kB / 286.3 MB, free: 3.527 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.323e-05/0.02641, allocations: 23.98 kB / 286.3 MB, free: 3.504 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000286/0.0267, allocations: 59.95 kB / 286.4 MB, free: 3.445 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.02682, allocations: 91.62 kB / 286.5 MB, free: 3.355 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.02685, allocations: 35.97 kB / 286.5 MB, free: 3.32 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.755e-05/0.02693, allocations: 173.1 kB / 286.7 MB, free: 3.152 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02693, allocations: 0 / 286.7 MB, free: 3.152 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003671/0.0273, allocations: 116 kB / 286.8 MB, free: 3.039 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.0001132/0.02741, allocations: 138.9 kB / 286.9 MB, free: 2.891 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007552/0.02817, allocations: 0.578 MB / 287.5 MB, free: 2.312 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.02817, allocations: 4 kB / 287.5 MB, free: 2.309 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.02838, allocations: 167.8 kB / 287.7 MB, free: 2.145 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005701/0.02895, allocations: 156.9 kB / 287.8 MB, free: 1.996 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001341/0.03029, allocations: 1.139 MB / 289 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.927e-05/0.03038, allocations: 130.8 kB / 289.1 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002635/0.03064, allocations: 91.17 kB / 289.2 MB, free: 420 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001901/0.03083, allocations: 36.5 kB / 289.2 MB, free: 380 kB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.03083, allocations: 0 / 289.2 MB, free: 380 kB / 266.7 MB Notification: Performance of Templates: time 0.009351/0.04018, allocations: 8.799 MB / 298 MB, free: 7.637 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.153970236890018]