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.001472/0.001472, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001222/0.001222, allocations: 165.6 kB / 24.82 MB, free: 8.922 MB / 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.037/1.037, allocations: 177.1 MB / 205.3 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] 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 2.755e-06/2.755e-06, allocations: 0 / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.025e-05/3.3e-05, allocations: 2.312 kB / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004663/0.004696, allocations: 2.342 MB / 275.7 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.006747, allocations: 0.8219 MB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.006976, allocations: 7.938 kB / 276.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004653/0.007442, allocations: 55.5 kB / 276.6 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003391/0.007781, allocations: 59.5 kB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.008328, allocations: 179.5 kB / 276.8 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003707/0.008698, allocations: 387.5 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.00887, allocations: 76.27 kB / 277.3 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003225/0.009193, allocations: 231.5 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.009381, allocations: 151.6 kB / 277.7 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.484e-05/0.009426, allocations: 32 kB / 277.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.83e-05/0.009464, allocations: 36 kB / 277.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.213e-05/0.009546, allocations: 95.7 kB / 277.8 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.887e-05/0.009625, allocations: 111.7 kB / 277.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.009922, allocations: 263 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.009926, allocations: 0 / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.009927, allocations: 0 / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.681e-06/0.009933, allocations: 0 / 278.2 MB, free: 12.46 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.0007929/0.01073, allocations: 0.6403 MB / 278.8 MB, free: 11.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.01076, allocations: 12.03 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.185e-05/0.01085, allocations: 76.7 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.01108, allocations: 209.3 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/0.01127, allocations: 343.9 kB / 279.5 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.149e-05/0.01131, allocations: 32.38 kB / 279.5 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004891/0.0118, allocations: 438.6 kB / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.01181, allocations: 192 / 279.9 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.01183, allocations: 16.12 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.01184, allocations: 8 kB / 279.9 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002672/0.01211, allocations: 199.7 kB / 280.1 MB, free: 10.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008001/0.01291, allocations: 0.9023 MB / 281 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004684/0.01337, allocations: 316.8 kB / 281.3 MB, free: 9.031 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001263/0.0135, allocations: 130.7 kB / 281.5 MB, free: 8.887 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.387e-05/0.01353, allocations: 12.39 kB / 281.5 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.127e-05/0.01356, allocations: 45.38 kB / 281.5 MB, free: 8.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.583e-06/0.01356, allocations: 4 kB / 281.5 MB, free: 8.816 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006109/0.01967, allocations: 2.396 MB / 283.9 MB, free: 6.418 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/0.01974, allocations: 153 kB / 284.1 MB, free: 6.238 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.01987, allocations: 242.5 kB / 284.3 MB, free: 5.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.01992, allocations: 33.7 kB / 284.4 MB, free: 5.941 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.514e-05/0.02, allocations: 192.5 kB / 284.5 MB, free: 5.746 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.02012, allocations: 202.3 kB / 284.7 MB, free: 5.547 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.02029, allocations: 95.92 kB / 284.8 MB, free: 5.445 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.02042, allocations: 0.5195 MB / 285.3 MB, free: 4.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002753/0.02069, allocations: 249.2 kB / 285.6 MB, free: 4.672 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003152/0.02101, allocations: 364 kB / 285.9 MB, free: 4.277 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005396/0.02155, allocations: 0.5419 MB / 286.5 MB, free: 3.695 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.02155, allocations: 4 kB / 286.5 MB, free: 3.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007702/0.02232, allocations: 0.6574 MB / 287.2 MB, free: 3.027 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.02233, allocations: 8 kB / 287.2 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.02234, allocations: 0 / 287.2 MB, free: 3.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.02235, allocations: 4 kB / 287.2 MB, free: 3.016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005281/0.02288, allocations: 164 kB / 287.3 MB, free: 2.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.02289, allocations: 12 kB / 287.3 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.02323, allocations: 71.84 kB / 287.4 MB, free: 2.773 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.02327, allocations: 16 kB / 287.4 MB, free: 2.758 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.0001692/0.02343, allocations: 192.4 kB / 287.6 MB, free: 2.559 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.02362, allocations: 145.8 kB / 287.8 MB, free: 2.41 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.682e-05/0.0237, allocations: 63.3 kB / 287.8 MB, free: 2.348 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.0237, allocations: 8 kB / 287.8 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.02371, allocations: 0 / 287.8 MB, free: 2.34 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.02371, allocations: 7.984 kB / 287.8 MB, free: 2.332 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.02541, allocations: 1.453 MB / 289.3 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.02542, allocations: 8.938 kB / 289.3 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003368/0.02576, allocations: 175.7 kB / 289.5 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.348e-06/0.02577, allocations: 16 kB / 289.5 MB, free: 488 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.02579, allocations: 24 kB / 289.5 MB, free: 464 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.207e-06/0.0258, allocations: 23.86 kB / 289.5 MB, free: 440 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.274e-06/0.02581, allocations: 15.94 kB / 289.5 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00079/0.0266, allocations: 1.054 MB / 290.6 MB, free: 15.15 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.02671, allocations: 91.61 kB / 290.7 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.02675, allocations: 27.98 kB / 290.7 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.02699, allocations: 55.95 kB / 290.8 MB, free: 14.98 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.02711, allocations: 95.62 kB / 290.9 MB, free: 14.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.694e-05/0.02714, allocations: 28 kB / 290.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.228e-05/0.0272, allocations: 161.1 kB / 291 MB, free: 14.7 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0272, allocations: 0 / 291 MB, free: 14.7 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003756/0.02758, allocations: 120 kB / 291.2 MB, free: 14.59 MB / 282.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.000227/0.0278, allocations: 142.9 kB / 291.3 MB, free: 14.44 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005876/0.02839, allocations: 0.4999 MB / 291.8 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.0284, allocations: 4.438 kB / 291.8 MB, free: 13.93 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001865/0.02858, allocations: 162.1 kB / 292 MB, free: 13.77 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000548/0.02913, allocations: 140.8 kB / 292.1 MB, free: 13.64 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.03045, allocations: 1.123 MB / 293.2 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000106/0.03056, allocations: 130.8 kB / 293.4 MB, free: 12.14 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002568/0.03082, allocations: 75.2 kB / 293.4 MB, free: 12.07 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003202/0.03114, allocations: 134.2 kB / 293.6 MB, free: 11.94 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.03114, allocations: 0 / 293.6 MB, free: 11.94 MB / 282.7 MB Notification: Performance of Templates: time 0.0106/0.04174, allocations: 9.398 MB / 303 MB, free: 2.602 MB / 282.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","",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.0139960078522563]