Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.005476/0.005476, allocations: 108.7 kB / 21.97 MB, free: 5.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.001453/0.001453, allocations: 220.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.387/1.387, allocations: 230.6 MB / 259 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003054/0.003054, allocations: 72.77 kB / 379.8 MB, free: 2.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.2812, allocations: 53.36 MB / 433.1 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003646/0.2849, allocations: 2.104 MB / 435.2 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.2859, allocations: 0.5453 MB / 435.8 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001041/0.286, allocations: 4 kB / 435.8 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.2862, allocations: 15.8 kB / 435.8 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.22e-05/0.2862, allocations: 39.7 kB / 435.9 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002689/0.2865, allocations: 55.88 kB / 435.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002049/0.2867, allocations: 123.6 kB / 436 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.2869, allocations: 45.58 kB / 436.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.994e-05/0.287, allocations: 59.72 kB / 436.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.364e-05/0.287, allocations: 55.7 kB / 436.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.2871, allocations: 12 kB / 436.2 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.958e-05/0.2871, allocations: 8 kB / 436.2 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.42e-05/0.2871, allocations: 23.92 kB / 436.2 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.409e-05/0.2872, allocations: 63.67 kB / 436.3 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.2875, allocations: 134 kB / 436.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2875, allocations: 0 / 436.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2875, allocations: 4 kB / 436.4 MB, free: 3.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.2875, allocations: 0 / 436.4 MB, free: 3.688 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.0006203/0.2881, allocations: 361.7 kB / 436.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2881, allocations: 8.031 kB / 436.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.829e-05/0.2882, allocations: 16.84 kB / 436.8 MB, free: 3.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002781/0.2884, allocations: 150.3 kB / 436.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.2885, allocations: 8.375 kB / 437 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.985e-05/0.2885, allocations: 12.38 kB / 437 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005009/0.289, allocations: 243.6 kB / 437.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.289, allocations: 0 / 437.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.663e-05/0.289, allocations: 8 kB / 437.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.375e-06/0.289, allocations: 4 kB / 437.2 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002433/0.2893, allocations: 87.8 kB / 437.3 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006927/0.29, allocations: 0.5389 MB / 437.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.2903, allocations: 147.9 kB / 438 MB, free: 1.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.2905, allocations: 66.64 kB / 438.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.505e-05/0.2905, allocations: 3.984 kB / 438.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.2905, allocations: 38.56 kB / 438.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.936e-06/0.2906, allocations: 7.938 kB / 438.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.000554/0.2911, allocations: 173.7 kB / 438.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.648e-05/0.2912, allocations: 114.8 kB / 438.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.2913, allocations: 138.1 kB / 438.5 MB, free: 1.371 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.113e-05/0.2913, allocations: 25.7 kB / 438.5 MB, free: 1.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.031e-05/0.2914, allocations: 128 kB / 438.7 MB, free: 1.211 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/0.2914, allocations: 31.91 kB / 438.7 MB, free: 1.18 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.713e-05/0.2915, allocations: 37.7 kB / 438.7 MB, free: 1.137 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.2916, allocations: 318.8 kB / 439 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.2918, allocations: 39.97 kB / 439.1 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001892/0.2919, allocations: 143.7 kB / 439.2 MB, free: 0.5898 MB / 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.0004232/0.2924, allocations: 201.5 kB / 439.4 MB, free: 352 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.2924, allocations: 0 / 439.4 MB, free: 352 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003889/0.2928, allocations: 201.1 kB / 439.6 MB, free: 144 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.2928, allocations: 8.469 kB / 439.6 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2928, allocations: 4 kB / 439.6 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.2928, allocations: 8 kB / 439.6 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.293, allocations: 43.91 kB / 439.7 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.293, allocations: 7.938 kB / 439.7 MB, free: 72 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.2931, allocations: 27.88 kB / 439.7 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.2931, allocations: 8 kB / 439.7 MB, free: 36 kB / 334.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.0001425/0.2932, allocations: 137.7 kB / 439.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.2934, allocations: 85.64 kB / 439.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.879e-05/0.2935, allocations: 24.64 kB / 440 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2935, allocations: 4 kB / 440 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2935, allocations: 0 / 440 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.2935, allocations: 0 / 440 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002819/0.2938, allocations: 188.5 kB / 440.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.2938, allocations: 0 / 440.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002195/0.294, allocations: 39.97 kB / 440.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.92e-06/0.294, allocations: 4 kB / 440.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.294, allocations: 3.984 kB / 440.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.294, allocations: 0 / 440.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.294, allocations: 8 kB / 440.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005633/0.2946, allocations: 379.4 kB / 440.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.306e-05/0.2946, allocations: 16.11 kB / 440.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.2946, allocations: 8.156 kB / 440.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.2948, allocations: 11.94 kB / 440.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.2948, allocations: 15.97 kB / 440.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.2948, allocations: 4 kB / 440.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.319e-05/0.2949, allocations: 102 kB / 440.7 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2949, allocations: 4 kB / 440.7 MB, free: 14.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003246/0.2952, allocations: 31.94 kB / 440.8 MB, free: 14.91 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.0001096/0.2953, allocations: 111.2 kB / 440.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003569/0.2957, allocations: 119.7 kB / 441 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.2957, allocations: 0 / 441 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.971e-05/0.2958, allocations: 32.84 kB / 441 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005081/0.2963, allocations: 67.86 kB / 441.1 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009477/0.2972, allocations: 439.1 kB / 441.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003507/0.2976, allocations: 0.7201 MB / 442.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.477e-05/0.2976, allocations: 15.44 kB / 442.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2976, allocations: 0 / 442.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of Templates: time 0.003612/0.3013, allocations: 1.619 MB / 443.9 MB, free: 11.75 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.452756647020578]