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.001749/0.001749, allocations: 108.7 kB / 19.8 MB, free: 2.516 MB / 14.72 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.001915/0.001915, allocations: 214.7 kB / 23 MB, free: 5.625 MB / 14.72 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 1.465/1.465, allocations: 230.2 MB / 256.2 MB, free: 8.578 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001866/0.001866, allocations: 59.91 kB / 376.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2431/0.245, allocations: 53.32 MB / 429.8 MB, free: 7.582 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00393/0.2489, allocations: 2.401 MB / 432.2 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.2506, allocations: 0.8455 MB / 433 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.2507, allocations: 7.938 kB / 433 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002724/0.251, allocations: 51.56 kB / 433.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.2512, allocations: 63.5 kB / 433.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005153/0.2517, allocations: 171.7 kB / 433.3 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004411/0.2521, allocations: 383.5 kB / 433.7 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.2523, allocations: 79.86 kB / 433.8 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000315/0.2526, allocations: 167.4 kB / 433.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.2529, allocations: 183.2 kB / 434.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.41e-05/0.2529, allocations: 32 kB / 434.1 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.455e-05/0.253, allocations: 36 kB / 434.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.2531, allocations: 95.7 kB / 434.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001425/0.2533, allocations: 143.2 kB / 434.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004187/0.2537, allocations: 343.8 kB / 434.7 MB, free: 2.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2537, allocations: 0 / 434.7 MB, free: 2.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2537, allocations: 4 kB / 434.7 MB, free: 2.586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2537, allocations: 0 / 434.7 MB, free: 2.586 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.001253/0.2549, allocations: 0.6275 MB / 435.4 MB, free: 1.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.255, allocations: 8.031 kB / 435.4 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.053e-05/0.2551, allocations: 40.7 kB / 435.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.2554, allocations: 280.4 kB / 435.7 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002087/0.2557, allocations: 134.2 kB / 435.8 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.1e-05/0.2557, allocations: 32.38 kB / 435.9 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.2569, allocations: 0.5738 MB / 436.4 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.257, allocations: 4 kB / 436.4 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.368e-05/0.257, allocations: 8 kB / 436.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.174e-05/0.257, allocations: 8 kB / 436.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001342/0.2584, allocations: 0.5113 MB / 437 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.2599, allocations: 1.014 MB / 438 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00159/0.2615, allocations: 478.5 kB / 438.4 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006094/0.2621, allocations: 239.4 kB / 438.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.179e-05/0.2622, allocations: 7.938 kB / 438.7 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/0.2622, allocations: 46.5 kB / 438.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.974e-06/0.2622, allocations: 0 / 438.7 MB, free: 14.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03789/0.3001, allocations: 5.732 MB / 444.5 MB, free: 8.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.3003, allocations: 144.9 kB / 444.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002314/0.3005, allocations: 205.1 kB / 444.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.162e-05/0.3006, allocations: 33.7 kB / 444.8 MB, free: 8.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3007, allocations: 149.7 kB / 445 MB, free: 8.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002022/0.3009, allocations: 206.3 kB / 445.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.3012, allocations: 106.7 kB / 445.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.3013, allocations: 342.8 kB / 445.6 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001593/0.3029, allocations: 0.6188 MB / 446.2 MB, free: 6.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/0.3047, allocations: 0.7924 MB / 447 MB, free: 5.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003025/0.3077, allocations: 1.255 MB / 448.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3077, allocations: 0 / 448.3 MB, free: 4.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00358/0.3113, allocations: 1.402 MB / 449.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3113, allocations: 8 kB / 449.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.3113, allocations: 4 kB / 449.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.802e-05/0.3113, allocations: 8 kB / 449.7 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.3127, allocations: 207.7 kB / 449.9 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.171e-05/0.3127, allocations: 19.95 kB / 449.9 MB, free: 2.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009188/0.3136, allocations: 103.8 kB / 450 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.314e-05/0.3137, allocations: 27.98 kB / 450.1 MB, free: 2.77 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.0003075/0.314, allocations: 181.6 kB / 450.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003042/0.3143, allocations: 153.4 kB / 450.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001631/0.3145, allocations: 68 kB / 450.5 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3145, allocations: 8 kB / 450.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.3145, allocations: 0 / 450.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.3145, allocations: 7.969 kB / 450.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004877/0.3194, allocations: 2.179 MB / 452.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.3194, allocations: 8 kB / 452.7 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007754/0.3202, allocations: 180.5 kB / 452.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.692e-05/0.3202, allocations: 16 kB / 452.8 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.3202, allocations: 20 kB / 452.9 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.626e-05/0.3203, allocations: 27.86 kB / 452.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.318e-05/0.3203, allocations: 15.94 kB / 452.9 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003161/0.3234, allocations: 1.553 MB / 454.5 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.3236, allocations: 164.7 kB / 454.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.814e-05/0.3237, allocations: 27.98 kB / 454.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005868/0.3243, allocations: 75.92 kB / 454.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/0.3245, allocations: 95.72 kB / 454.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.936e-05/0.3246, allocations: 28 kB / 454.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001349/0.3247, allocations: 152 kB / 455 MB, free: 13.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3247, allocations: 0 / 455 MB, free: 13.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006421/0.3253, allocations: 120 kB / 455.1 MB, free: 13.34 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.000182/0.3255, allocations: 135 kB / 455.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00269/0.3282, allocations: 1.025 MB / 456.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.3282, allocations: 0 / 456.3 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009648/0.3292, allocations: 335.2 kB / 456.6 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001109/0.3303, allocations: 128.5 kB / 456.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002509/0.3328, allocations: 1.181 MB / 457.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.3333, allocations: 0.8129 MB / 458.7 MB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004793/0.3338, allocations: 91.33 kB / 458.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002832/0.334, allocations: 43.42 kB / 458.8 MB, free: 9.414 MB / 366.1 MB Notification: Performance of SimCode: time 1.042e-06/0.334, allocations: 4 kB / 458.9 MB, free: 9.41 MB / 366.1 MB Notification: Performance of Templates: time 0.01501/0.349, allocations: 8.694 MB / 467.5 MB, free: 0.7305 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.831659114919603]