Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001796/0.001796, allocations: 110.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.002222/0.002222, allocations: 217.4 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.526/1.526, allocations: 230.4 MB / 258.1 MB, free: 8.148 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [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.001976/0.001976, allocations: 63.83 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3008, allocations: 53.31 MB / 432 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003904/0.3047, allocations: 2.073 MB / 434.1 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.306, allocations: 0.6155 MB / 434.7 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001233/0.3061, allocations: 4 kB / 434.7 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.3062, allocations: 15.8 kB / 434.7 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.3064, allocations: 35.72 kB / 434.8 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002993/0.3067, allocations: 75.78 kB / 434.8 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002097/0.3069, allocations: 123.6 kB / 435 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.3071, allocations: 41.86 kB / 435 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.579e-05/0.3072, allocations: 59.72 kB / 435.1 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.3073, allocations: 55.7 kB / 435.1 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.54e-05/0.3073, allocations: 8 kB / 435.1 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.262e-05/0.3074, allocations: 12 kB / 435.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.265e-05/0.3074, allocations: 39.84 kB / 435.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.412e-05/0.3075, allocations: 67.61 kB / 435.2 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002376/0.3078, allocations: 144.9 kB / 435.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3078, allocations: 0 / 435.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.3078, allocations: 0 / 435.4 MB, free: 4.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.3078, allocations: 0 / 435.4 MB, free: 4.004 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.000784/0.3086, allocations: 462.6 kB / 435.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3086, allocations: 11.97 kB / 435.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.175e-05/0.3087, allocations: 24.8 kB / 435.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003849/0.3091, allocations: 224 kB / 436.1 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.3091, allocations: 8.375 kB / 436.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.3091, allocations: 16.38 kB / 436.1 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005873/0.3097, allocations: 250.9 kB / 436.4 MB, free: 2.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3097, allocations: 7.938 kB / 436.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.3097, allocations: 8 kB / 436.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.3097, allocations: 4 kB / 436.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002612/0.31, allocations: 83.88 kB / 436.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008242/0.3108, allocations: 0.5999 MB / 437.1 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003784/0.3112, allocations: 143.9 kB / 437.2 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.3114, allocations: 74.56 kB / 437.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.708e-05/0.3114, allocations: 11.97 kB / 437.3 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.693e-05/0.3114, allocations: 30.56 kB / 437.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.3114, allocations: 4 kB / 437.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000556/0.312, allocations: 189.3 kB / 437.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.196e-05/0.3121, allocations: 110.8 kB / 437.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.3123, allocations: 158.9 kB / 437.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.3123, allocations: 29.69 kB / 437.8 MB, free: 1.312 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.285e-05/0.3124, allocations: 112.5 kB / 437.9 MB, free: 1.199 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.035e-05/0.3124, allocations: 27.98 kB / 437.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.3125, allocations: 37.7 kB / 438 MB, free: 1.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.3127, allocations: 326.8 kB / 438.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.3128, allocations: 35.97 kB / 438.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.313, allocations: 137.6 kB / 438.5 MB, free: 0.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003281/0.3134, allocations: 189.5 kB / 438.6 MB, free: 356 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3134, allocations: 0 / 438.6 MB, free: 356 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004091/0.3138, allocations: 201.8 kB / 438.8 MB, free: 148 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3138, allocations: 8 kB / 438.8 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.3138, allocations: 4 kB / 438.8 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.3138, allocations: 4 kB / 438.9 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.314, allocations: 52.3 kB / 438.9 MB, free: 80 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.314, allocations: 12 kB / 438.9 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.3141, allocations: 19.94 kB / 438.9 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/0.3141, allocations: 8 kB / 438.9 MB, free: 40 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.0001394/0.3143, allocations: 141.7 kB / 439.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.3144, allocations: 93.52 kB / 439.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.647e-05/0.3145, allocations: 16.72 kB / 439.2 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3145, allocations: 4 kB / 439.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3145, allocations: 4 kB / 439.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3145, allocations: 7.984 kB / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003156/0.3148, allocations: 213.5 kB / 439.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3148, allocations: 0 / 439.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/0.315, allocations: 39.91 kB / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.315, allocations: 0 / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.3151, allocations: 4 kB / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3151, allocations: 0 / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3151, allocations: 0 / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006034/0.3157, allocations: 387.5 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.3158, allocations: 109 kB / 439.9 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.3158, allocations: 15.94 kB / 440 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.316, allocations: 7.984 kB / 440 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.316, allocations: 8.062 kB / 440 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.316, allocations: 4 kB / 440 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001037/0.3161, allocations: 124.1 kB / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3161, allocations: 0 / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003157/0.3164, allocations: 24 kB / 440.1 MB, free: 14.76 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.0001183/0.3166, allocations: 103.2 kB / 440.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003449/0.3169, allocations: 120 kB / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3169, allocations: 0 / 440.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001029/0.317, allocations: 31.91 kB / 440.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/0.3175, allocations: 63.7 kB / 440.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008227/0.3183, allocations: 448.8 kB / 440.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003913/0.3187, allocations: 0.7201 MB / 441.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.965e-05/0.3188, allocations: 13.42 kB / 441.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.3188, allocations: 15.44 kB / 441.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3188, allocations: 0 / 441.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of Templates: time 0.004475/0.3233, allocations: 1.413 MB / 443 MB, free: 11.83 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.567706700414419]