Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001924/0.001924, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002166/0.002166, allocations: 203.8 kB / 23.72 MB, free: 4.391 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.575/1.575, allocations: 230.5 MB / 257.4 MB, free: 7.754 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.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 67.89 kB / 378.2 MB, free: 2.309 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2807, allocations: 53.41 MB / 431.6 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003918/0.2847, allocations: 2.032 MB / 433.6 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.2859, allocations: 0.5103 MB / 434.2 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.286, allocations: 4 kB / 434.2 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.2862, allocations: 19.73 kB / 434.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001073/0.2863, allocations: 31.72 kB / 434.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000328/0.2866, allocations: 55.88 kB / 434.3 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002313/0.2869, allocations: 127.5 kB / 434.4 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001695/0.287, allocations: 37.64 kB / 434.4 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000115/0.2871, allocations: 51.84 kB / 434.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001018/0.2872, allocations: 51.7 kB / 434.5 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.189e-05/0.2873, allocations: 16 kB / 434.5 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.374e-05/0.2873, allocations: 8 kB / 434.5 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.615e-05/0.2873, allocations: 31.8 kB / 434.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.696e-05/0.2874, allocations: 51.78 kB / 434.6 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002352/0.2876, allocations: 129.9 kB / 434.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2876, allocations: 0 / 434.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2877, allocations: 0 / 434.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.134e-06/0.2877, allocations: 0 / 434.8 MB, free: 3.328 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006711/0.2883, allocations: 360.5 kB / 435.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.2884, allocations: 19.98 kB / 435.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.87e-05/0.2884, allocations: 16.84 kB / 435.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002941/0.2887, allocations: 146.3 kB / 435.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.2887, allocations: 12.38 kB / 435.3 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.819e-05/0.2888, allocations: 16.33 kB / 435.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005227/0.2893, allocations: 235.6 kB / 435.5 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.2893, allocations: 8 kB / 435.6 MB, free: 2.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.2893, allocations: 7.984 kB / 435.6 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2893, allocations: 0 / 435.6 MB, free: 2.449 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002724/0.2896, allocations: 91.8 kB / 435.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006649/0.2903, allocations: 0.4886 MB / 436.1 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.2906, allocations: 143.9 kB / 436.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.2908, allocations: 70.64 kB / 436.4 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.926e-05/0.2908, allocations: 7.984 kB / 436.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.859e-05/0.2909, allocations: 34.5 kB / 436.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.2909, allocations: 0 / 436.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005198/0.2914, allocations: 185.3 kB / 436.6 MB, free: 1.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.648e-05/0.2915, allocations: 114.8 kB / 436.7 MB, free: 1.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.2916, allocations: 134.3 kB / 436.8 MB, free: 1.062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.2916, allocations: 30.08 kB / 436.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.647e-05/0.2917, allocations: 116 kB / 437 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.2917, allocations: 39.77 kB / 437 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.345e-05/0.2918, allocations: 33.7 kB / 437 MB, free: 0.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2919, allocations: 326.8 kB / 437.3 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.292, allocations: 39.97 kB / 437.4 MB, free: 476 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001842/0.2922, allocations: 141 kB / 437.5 MB, free: 288 kB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004097/0.2926, allocations: 200.7 kB / 437.7 MB, free: 40 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2926, allocations: 0 / 437.7 MB, free: 40 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004235/0.2931, allocations: 209.1 kB / 437.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.2931, allocations: 8 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.2931, allocations: 4 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.2931, allocations: 4 kB / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001675/0.2933, allocations: 47.91 kB / 438 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.2933, allocations: 4 kB / 438 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001118/0.2934, allocations: 24.28 kB / 438 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.769e-05/0.2934, allocations: 12 kB / 438 MB, free: 15.73 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001234/0.2935, allocations: 129.8 kB / 438.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.2937, allocations: 89.52 kB / 438.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.915e-05/0.2938, allocations: 20.7 kB / 438.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.2938, allocations: 0 / 438.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.2938, allocations: 4 kB / 438.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.2938, allocations: 240 / 438.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/0.294, allocations: 137.2 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.294, allocations: 4 kB / 438.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.2942, allocations: 47.97 kB / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.064e-06/0.2942, allocations: 7.922 kB / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.2942, allocations: 7.984 kB / 438.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.404e-06/0.2942, allocations: 0 / 438.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2942, allocations: 3.938 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005569/0.2948, allocations: 375.5 kB / 438.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.55e-05/0.2948, allocations: 19.91 kB / 438.9 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.428e-05/0.2949, allocations: 4 kB / 438.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.295, allocations: 12 kB / 438.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.482e-05/0.295, allocations: 15.98 kB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.486e-06/0.295, allocations: 4 kB / 438.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.542e-05/0.2951, allocations: 110 kB / 439 MB, free: 14.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2951, allocations: 96 / 439 MB, free: 14.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003238/0.2954, allocations: 31.89 kB / 439 MB, free: 14.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0001163/0.2956, allocations: 103.2 kB / 439.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003648/0.2959, allocations: 134.5 kB / 439.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.2959, allocations: 0 / 439.3 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.978e-05/0.296, allocations: 23.98 kB / 439.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.2965, allocations: 56.92 kB / 439.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008927/0.2974, allocations: 421.5 kB / 439.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.2975, allocations: 102.7 kB / 439.9 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.351e-05/0.2976, allocations: 21.06 kB / 439.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.927e-05/0.2976, allocations: 11.44 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2976, allocations: 4 kB / 439.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of Templates: time 0.00505/0.3027, allocations: 1.52 MB / 441.4 MB, free: 12.28 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.649545716121793]