Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001775/0.001775, allocations: 111.6 kB / 21.19 MB, free: 0.6641 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.001572/0.001572, allocations: 219.4 kB / 24.48 MB, free: 3.965 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.483/1.483, allocations: 230.5 MB / 258.1 MB, free: 7.789 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 63.89 kB / 379 MB, free: 2.344 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2551, allocations: 53.41 MB / 432.4 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003656/0.2587, allocations: 2.077 MB / 434.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.2601, allocations: 0.6588 MB / 435.1 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.2602, allocations: 4 kB / 435.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002648/0.2604, allocations: 43.64 kB / 435.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001546/0.2606, allocations: 51.62 kB / 435.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003666/0.261, allocations: 123.8 kB / 435.3 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004094/0.2614, allocations: 347.2 kB / 435.7 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001621/0.2615, allocations: 48.19 kB / 435.7 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003017/0.2618, allocations: 151.5 kB / 435.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.2621, allocations: 143.4 kB / 436 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.671e-05/0.2621, allocations: 28 kB / 436 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.489e-05/0.2622, allocations: 32 kB / 436.1 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.2623, allocations: 91.72 kB / 436.1 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.2624, allocations: 107.5 kB / 436.3 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003904/0.2628, allocations: 289.9 kB / 436.5 MB, free: 2.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2628, allocations: 7.938 kB / 436.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2628, allocations: 0 / 436.5 MB, free: 2.352 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2628, allocations: 0 / 436.5 MB, free: 2.352 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001191/0.264, allocations: 0.5204 MB / 437.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.264, allocations: 11.98 kB / 437.1 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.898e-05/0.2641, allocations: 32.8 kB / 437.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.2645, allocations: 186.1 kB / 437.3 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003413/0.2649, allocations: 347.8 kB / 437.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-05/0.2649, allocations: 27.94 kB / 437.7 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000927/0.2659, allocations: 374.5 kB / 438 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.2659, allocations: 7.953 kB / 438 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.605e-05/0.2659, allocations: 8 kB / 438 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.2659, allocations: 4 kB / 438 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.2673, allocations: 0.4938 MB / 438.5 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.2691, allocations: 0.8608 MB / 439.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.2702, allocations: 299 kB / 439.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005456/0.2707, allocations: 169.2 kB / 439.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.2707, allocations: 8 kB / 439.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.2708, allocations: 38.5 kB / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.544e-06/0.2708, allocations: 0 / 439.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02631/0.2971, allocations: 5.671 MB / 445.6 MB, free: 9.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.58e-05/0.2972, allocations: 63.78 kB / 445.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.2974, allocations: 206.3 kB / 445.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.656e-05/0.2975, allocations: 33.7 kB / 445.9 MB, free: 8.742 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.2976, allocations: 157 kB / 446 MB, free: 8.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001718/0.2978, allocations: 190.4 kB / 446.2 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002011/0.298, allocations: 90.34 kB / 446.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.2981, allocations: 334.8 kB / 446.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.2995, allocations: 469 kB / 447.1 MB, free: 7.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001376/0.3008, allocations: 0.5303 MB / 447.6 MB, free: 6.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002417/0.3033, allocations: 0.8062 MB / 448.4 MB, free: 6.148 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.3033, allocations: 0 / 448.4 MB, free: 6.148 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002867/0.3061, allocations: 1.001 MB / 449.4 MB, free: 5.141 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.3062, allocations: 8 kB / 449.4 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3062, allocations: 4.109 kB / 449.4 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.3062, allocations: 8 kB / 449.4 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009565/0.3071, allocations: 175.7 kB / 449.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.3072, allocations: 4 kB / 449.6 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006787/0.3078, allocations: 79.89 kB / 449.7 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.363e-05/0.3079, allocations: 23.98 kB / 449.7 MB, free: 4.844 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002554/0.3081, allocations: 161.7 kB / 449.9 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.651e-05/0.3082, allocations: 27.81 kB / 449.9 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001359/0.3084, allocations: 55.3 kB / 449.9 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.828e-06/0.3084, allocations: 7.938 kB / 450 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.3084, allocations: 0 / 450 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.196e-06/0.3084, allocations: 7.984 kB / 450 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004198/0.3126, allocations: 1.693 MB / 451.7 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.435e-05/0.3126, allocations: 12 kB / 451.7 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006314/0.3132, allocations: 143.8 kB / 451.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.871e-05/0.3133, allocations: 19.92 kB / 451.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.3133, allocations: 16.41 kB / 451.8 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.524e-05/0.3133, allocations: 19.94 kB / 451.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.3e-05/0.3133, allocations: 15.88 kB / 451.9 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002926/0.3162, allocations: 1.246 MB / 453.1 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.3165, allocations: 67.84 kB / 453.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.674e-05/0.3165, allocations: 23.98 kB / 453.2 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005269/0.3171, allocations: 75.86 kB / 453.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.3173, allocations: 87.7 kB / 453.4 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.894e-05/0.3173, allocations: 24 kB / 453.4 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001765/0.3175, allocations: 152.3 kB / 453.5 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3175, allocations: 4 kB / 453.6 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004746/0.3179, allocations: 96 kB / 453.6 MB, free: 0.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001893/0.3181, allocations: 131 kB / 453.8 MB, free: 500 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.3205, allocations: 0.7902 MB / 454.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/0.3205, allocations: 4 kB / 454.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3215, allocations: 325.7 kB / 454.9 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006363/0.3222, allocations: 65.66 kB / 455 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.3244, allocations: 1.054 MB / 456 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001923/0.3246, allocations: 176.2 kB / 456.2 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/0.3249, allocations: 35.44 kB / 456.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3249, allocations: 3.938 kB / 456.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of Templates: time 0.009254/0.3341, allocations: 5.728 MB / 461.9 MB, free: 8.191 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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: 7.493680904619396]