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.001923/0.001923, allocations: 110.5 kB / 21.23 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.002188/0.002188, allocations: 211.9 kB / 24.54 MB, free: 4.02 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.546/1.546, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.002013/0.002013, allocations: 64.77 kB / 379 MB, free: 2.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3104, allocations: 53.37 MB / 432.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004005/0.3144, allocations: 2.05 MB / 434.4 MB, free: 4.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.3155, allocations: 0.5687 MB / 435 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.3157, allocations: 8 kB / 435 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.3158, allocations: 15.8 kB / 435 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001755/0.316, allocations: 31.72 kB / 435.1 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003293/0.3163, allocations: 51.88 kB / 435.1 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003283/0.3166, allocations: 135.5 kB / 435.2 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.3168, allocations: 40.53 kB / 435.3 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.314e-05/0.3169, allocations: 47.84 kB / 435.3 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001007/0.317, allocations: 59.7 kB / 435.4 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.317, allocations: 8 kB / 435.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.494e-05/0.317, allocations: 19.94 kB / 435.4 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.793e-05/0.3171, allocations: 27.91 kB / 435.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.13e-05/0.3172, allocations: 63.61 kB / 435.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003594/0.3175, allocations: 127.2 kB / 435.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.3175, allocations: 0 / 435.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3175, allocations: 0 / 435.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.37e-05/0.3175, allocations: 0 / 435.6 MB, free: 3.699 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.0006715/0.3182, allocations: 357.8 kB / 436 MB, free: 3.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.3182, allocations: 16.03 kB / 436 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.144e-05/0.3183, allocations: 20.84 kB / 436 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002473/0.3185, allocations: 150.2 kB / 436.2 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.579e-05/0.3186, allocations: 8.375 kB / 436.2 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.214e-05/0.3186, allocations: 16.36 kB / 436.2 MB, free: 3.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005456/0.3192, allocations: 242.9 kB / 436.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/0.3192, allocations: 11.92 kB / 436.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.3192, allocations: 4 kB / 436.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3192, allocations: 4 kB / 436.4 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002667/0.3195, allocations: 83.88 kB / 436.5 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007781/0.3202, allocations: 0.5349 MB / 437.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004325/0.3207, allocations: 139.9 kB / 437.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.3209, allocations: 70.62 kB / 437.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.3209, allocations: 4 kB / 437.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.563e-05/0.3209, allocations: 42.5 kB / 437.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.373e-06/0.3209, allocations: 7.938 kB / 437.3 MB, free: 1.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006457/0.3216, allocations: 181.4 kB / 437.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001053/0.3217, allocations: 110.8 kB / 437.6 MB, free: 1.512 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.3219, allocations: 126.1 kB / 437.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.3219, allocations: 25.7 kB / 437.8 MB, free: 1.344 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001143/0.322, allocations: 120.2 kB / 437.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.6e-05/0.322, allocations: 28.16 kB / 437.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.943e-05/0.3221, allocations: 37.7 kB / 437.9 MB, free: 1.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.3223, allocations: 322.8 kB / 438.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.3224, allocations: 35.97 kB / 438.3 MB, free: 0.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.3227, allocations: 143.1 kB / 438.4 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.3231, allocations: 185.5 kB / 438.6 MB, free: 384 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3231, allocations: 0 / 438.6 MB, free: 384 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004474/0.3235, allocations: 201.2 kB / 438.8 MB, free: 176 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.3235, allocations: 4 kB / 438.8 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/0.3235, allocations: 4 kB / 438.8 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/0.3236, allocations: 8.469 kB / 438.8 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.3237, allocations: 47.91 kB / 438.9 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.559e-05/0.3238, allocations: 7.938 kB / 438.9 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.3239, allocations: 27.88 kB / 438.9 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.72e-05/0.3239, allocations: 8 kB / 438.9 MB, free: 68 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.0001796/0.3241, allocations: 133.7 kB / 439 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.3242, allocations: 89.81 kB / 439.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.3243, allocations: 20.7 kB / 439.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/0.3244, allocations: 11.98 kB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3244, allocations: 0 / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3244, allocations: 0 / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003455/0.3247, allocations: 184.6 kB / 439.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3247, allocations: 4 kB / 439.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.3249, allocations: 27.98 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.728e-06/0.3249, allocations: 7.984 kB / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.3249, allocations: 0 / 439.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.3249, allocations: 4 kB / 439.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3249, allocations: 0 / 439.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006439/0.3256, allocations: 388.5 kB / 439.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.839e-05/0.3256, allocations: 19.83 kB / 439.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.499e-05/0.3256, allocations: 7.938 kB / 439.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001409/0.3258, allocations: 4.062 kB / 439.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.184e-05/0.3258, allocations: 15.98 kB / 439.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.3259, allocations: 4 kB / 439.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.946e-05/0.3259, allocations: 95.27 kB / 439.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3259, allocations: 0 / 439.9 MB, free: 14.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003226/0.3263, allocations: 28 kB / 439.9 MB, free: 14.96 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.0001151/0.3264, allocations: 99.72 kB / 440 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003619/0.3267, allocations: 127.8 kB / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3267, allocations: 0 / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.837e-05/0.3268, allocations: 23.98 kB / 440.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005008/0.3273, allocations: 60.86 kB / 440.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008327/0.3282, allocations: 394.4 kB / 440.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.3286, allocations: 0.7162 MB / 441.3 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.684e-05/0.3287, allocations: 13.08 kB / 441.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.295e-05/0.3287, allocations: 15.44 kB / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3287, allocations: 0 / 441.4 MB, free: 13.46 MB / 350.1 MB Notification: Performance of Templates: time 0.004959/0.3337, allocations: 1.337 MB / 442.7 MB, free: 12.17 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.752234225161374]