Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009878/0.0009878, allocations: 84.73 kB / 21.5 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 165 kB / 24.91 MB, free: 9.195 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9654/0.9654, allocations: 177 MB / 205.2 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.134e-06/2.134e-06, allocations: 3.938 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.487e-05/2.7e-05, allocations: 2.312 kB / 273.4 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003846/0.003873, allocations: 2.356 MB / 275.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.005576, allocations: 0.8412 MB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.005745, allocations: 7.938 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002883/0.006034, allocations: 55.5 kB / 276.6 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.006237, allocations: 55.56 kB / 276.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004586/0.006696, allocations: 187.4 kB / 276.9 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003358/0.007032, allocations: 391.5 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001584/0.00719, allocations: 82.81 kB / 277.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003436/0.007534, allocations: 231.5 kB / 277.5 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.007709, allocations: 147.6 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.935e-05/0.007748, allocations: 36 kB / 277.7 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.485e-05/0.007783, allocations: 36 kB / 277.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.046e-05/0.007863, allocations: 103.7 kB / 277.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.493e-05/0.007938, allocations: 107.7 kB / 278 MB, free: 12.63 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.008213, allocations: 251.1 kB / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.008217, allocations: 0 / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.008219, allocations: 0 / 278.2 MB, free: 12.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.008225, allocations: 7.984 kB / 278.2 MB, free: 12.38 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.000675/0.0089, allocations: 0.5118 MB / 278.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.008936, allocations: 11.98 kB / 278.7 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.843e-05/0.009004, allocations: 60.89 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.009229, allocations: 189.8 kB / 279 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001728/0.009401, allocations: 343.9 kB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.009443, allocations: 36.38 kB / 279.4 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004753/0.009918, allocations: 419.6 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.009933, allocations: 4.141 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.009955, allocations: 20.12 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.009961, allocations: 4 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002573/0.01022, allocations: 174.6 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007109/0.01093, allocations: 0.639 MB / 280.6 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000445/0.01137, allocations: 322.8 kB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.01149, allocations: 107.5 kB / 281 MB, free: 9.332 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.678e-05/0.01152, allocations: 8 kB / 281 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.355e-05/0.01155, allocations: 46.5 kB / 281.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.344e-06/0.01155, allocations: 0 / 281.1 MB, free: 9.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005521/0.01707, allocations: 2.243 MB / 283.3 MB, free: 7.023 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.551e-05/0.01715, allocations: 153.2 kB / 283.5 MB, free: 6.844 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.01728, allocations: 187.2 kB / 283.6 MB, free: 6.645 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.705e-05/0.01733, allocations: 37.7 kB / 283.7 MB, free: 6.602 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.01738, allocations: 129.8 kB / 283.8 MB, free: 6.469 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.0175, allocations: 198.3 kB / 284 MB, free: 6.273 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.01765, allocations: 94.27 kB / 284.1 MB, free: 6.176 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.874e-05/0.01773, allocations: 342.7 kB / 284.4 MB, free: 5.832 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00024/0.01797, allocations: 208.1 kB / 284.6 MB, free: 5.625 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002599/0.01823, allocations: 286.7 kB / 284.9 MB, free: 5.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/0.0187, allocations: 499 kB / 285.4 MB, free: 4.801 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.01871, allocations: 7.938 kB / 285.4 MB, free: 4.793 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005983/0.0193, allocations: 0.5362 MB / 285.9 MB, free: 4.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.01933, allocations: 11.28 kB / 286 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.01933, allocations: 0 / 286 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.01935, allocations: 8 kB / 286 MB, free: 4.234 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005207/0.01987, allocations: 164 kB / 286.1 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.01988, allocations: 11.92 kB / 286.1 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003181/0.0202, allocations: 75.84 kB / 286.2 MB, free: 3.988 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.02023, allocations: 16 kB / 286.2 MB, free: 3.973 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.0001831/0.02042, allocations: 144.5 kB / 286.4 MB, free: 3.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001624/0.02058, allocations: 117.5 kB / 286.5 MB, free: 3.699 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.534e-05/0.02065, allocations: 63.31 kB / 286.5 MB, free: 3.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.02066, allocations: 8 kB / 286.6 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.02067, allocations: 7.984 kB / 286.6 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.02067, allocations: 0 / 286.6 MB, free: 3.621 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.0222, allocations: 1.193 MB / 287.8 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.02221, allocations: 12 kB / 287.8 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.02254, allocations: 167.8 kB / 287.9 MB, free: 2.102 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-05/0.02255, allocations: 16 kB / 287.9 MB, free: 2.086 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.02258, allocations: 24 kB / 288 MB, free: 2.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.908e-06/0.02259, allocations: 15.94 kB / 288 MB, free: 2.047 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.0226, allocations: 15.94 kB / 288 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006518/0.02325, allocations: 0.8477 MB / 288.8 MB, free: 1.027 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001162/0.02337, allocations: 59.67 kB / 288.9 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.436e-05/0.02341, allocations: 31.98 kB / 288.9 MB, free: 0.9375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.02364, allocations: 51.95 kB / 289 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.02376, allocations: 91.62 kB / 289.1 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.02378, allocations: 24 kB / 289.1 MB, free: 0.7734 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.654e-05/0.02383, allocations: 46.78 kB / 289.1 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.02383, allocations: 4.031 kB / 289.2 MB, free: 0.7227 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003707/0.0242, allocations: 116 kB / 289.3 MB, free: 0.6094 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.0001414/0.02434, allocations: 120.1 kB / 289.4 MB, free: 492 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.0249, allocations: 465.5 kB / 289.8 MB, free: 24 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.065e-06/0.02491, allocations: 12 kB / 289.8 MB, free: 12 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.02509, allocations: 151.9 kB / 290 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.0256, allocations: 149.3 kB / 290.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001256/0.02686, allocations: 0.9965 MB / 291.1 MB, free: 14.56 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.085e-05/0.02695, allocations: 130.7 kB / 291.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002579/0.02721, allocations: 75.2 kB / 291.3 MB, free: 14.35 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002746/0.02748, allocations: 119.3 kB / 291.5 MB, free: 14.23 MB / 282.7 MB Notification: Performance of SimCode: time 1.383e-06/0.02748, allocations: 0 / 291.5 MB, free: 14.23 MB / 282.7 MB Notification: Performance of Templates: time 0.01071/0.03819, allocations: 9.339 MB / 300.8 MB, free: 4.926 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.866461551282555]