Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001827/0.001827, allocations: 108.4 kB / 21.17 MB, free: 0.7852 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.002312/0.002312, allocations: 217.3 kB / 24.47 MB, free: 4.359 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.498/1.498, allocations: 230.4 MB / 258.1 MB, free: 8.145 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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") [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.00206/0.00206, allocations: 67.84 kB / 378.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.315, allocations: 53.32 MB / 432 MB, free: 7.398 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003735/0.3187, allocations: 2.055 MB / 434.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.3198, allocations: 0.5687 MB / 434.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.3199, allocations: 4 kB / 434.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001234/0.32, allocations: 15.8 kB / 434.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001567/0.3202, allocations: 35.72 kB / 434.7 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.3204, allocations: 59.12 kB / 434.8 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.3206, allocations: 119.6 kB / 434.9 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.3208, allocations: 41.38 kB / 434.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.3209, allocations: 55.78 kB / 435 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001062/0.321, allocations: 59.75 kB / 435 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.499e-05/0.321, allocations: 12 kB / 435 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.478e-05/0.321, allocations: 15.94 kB / 435.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.709e-05/0.3211, allocations: 27.86 kB / 435.1 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.782e-05/0.3211, allocations: 51.73 kB / 435.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.3214, allocations: 136.9 kB / 435.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3214, allocations: 0 / 435.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3214, allocations: 0 / 435.3 MB, free: 4.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.67e-06/0.3214, allocations: 0 / 435.3 MB, free: 4.141 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007004/0.3221, allocations: 434.9 kB / 435.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.3221, allocations: 12.03 kB / 435.7 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.324e-05/0.3222, allocations: 12.84 kB / 435.7 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.3225, allocations: 208.1 kB / 435.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.3225, allocations: 12.31 kB / 435.9 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.3225, allocations: 16.38 kB / 435.9 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/0.323, allocations: 254.9 kB / 436.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.323, allocations: 3.938 kB / 436.2 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.782e-05/0.3231, allocations: 8 kB / 436.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.3231, allocations: 4 kB / 436.2 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002687/0.3233, allocations: 91.86 kB / 436.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007091/0.3241, allocations: 0.5844 MB / 436.9 MB, free: 2.34 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003773/0.3244, allocations: 143.9 kB / 437 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.3246, allocations: 70.64 kB / 437.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.3246, allocations: 0 / 437.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.537e-05/0.3247, allocations: 50.48 kB / 437.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.092e-06/0.3247, allocations: 0 / 437.1 MB, free: 2.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005513/0.3252, allocations: 181.4 kB / 437.3 MB, free: 1.852 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.3253, allocations: 106.8 kB / 437.4 MB, free: 1.723 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000122/0.3254, allocations: 130.1 kB / 437.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.3255, allocations: 25.83 kB / 437.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.683e-05/0.3255, allocations: 120.1 kB / 437.7 MB, free: 1.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.864e-05/0.3256, allocations: 27.78 kB / 437.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/0.3256, allocations: 33.72 kB / 437.8 MB, free: 1.363 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3258, allocations: 322.8 kB / 438.1 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.3259, allocations: 35.97 kB / 438.1 MB, free: 1.004 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.3261, allocations: 138.6 kB / 438.2 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.3264, allocations: 185.5 kB / 438.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/0.3264, allocations: 0 / 438.4 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000398/0.3268, allocations: 213.3 kB / 438.6 MB, free: 384 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.3268, allocations: 8 kB / 438.6 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3268, allocations: 0.5156 kB / 438.6 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.3268, allocations: 16.36 kB / 438.7 MB, free: 360 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.327, allocations: 39.92 kB / 438.7 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.229e-05/0.327, allocations: 11.92 kB / 438.7 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.3271, allocations: 23.89 kB / 438.7 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.3271, allocations: 11.94 kB / 438.7 MB, free: 272 kB / 334.1 MB 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.0001298/0.3273, allocations: 137.6 kB / 438.9 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.3274, allocations: 85.58 kB / 439 MB, free: 32 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.6e-05/0.3275, allocations: 20.72 kB / 439 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.3275, allocations: 4 kB / 439 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.3275, allocations: 0 / 439 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.3275, allocations: 0 / 439 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003157/0.3278, allocations: 213.5 kB / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.3278, allocations: 0 / 439.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.328, allocations: 35.97 kB / 439.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.328, allocations: 4 kB / 439.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.328, allocations: 0 / 439.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.328, allocations: 0 / 439.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.328, allocations: 4 kB / 439.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005637/0.3286, allocations: 383.4 kB / 439.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.681e-05/0.3287, allocations: 89.05 kB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.3287, allocations: 8 kB / 439.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.3288, allocations: 12.05 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.229e-05/0.3289, allocations: 8 kB / 439.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-06/0.3289, allocations: 4 kB / 439.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.848e-05/0.3289, allocations: 102.5 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3289, allocations: 0 / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000332/0.3293, allocations: 31.94 kB / 439.9 MB, free: 15.04 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.0001141/0.3294, allocations: 99.19 kB / 440 MB, free: 14.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003425/0.3297, allocations: 119.8 kB / 440.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3297, allocations: 0 / 440.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.3298, allocations: 27.97 kB / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004772/0.3303, allocations: 57.25 kB / 440.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007396/0.3311, allocations: 397.4 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.3314, allocations: 0.7279 MB / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.394e-05/0.3315, allocations: 5.094 kB / 441.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.99e-05/0.3315, allocations: 15.44 kB / 441.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3315, allocations: 0 / 441.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of Templates: time 0.004383/0.3359, allocations: 1.294 MB / 442.6 MB, free: 12.29 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.480108865071088]