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.001626/0.001626, allocations: 114 kB / 21.18 MB, free: 0.5898 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.001762/0.001762, allocations: 213.5 kB / 24.47 MB, free: 3.996 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.537/1.537, allocations: 230.4 MB / 258.1 MB, free: 8.137 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.001954/0.001954, allocations: 67.83 kB / 378.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3118/0.3137, allocations: 53.31 MB / 432 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003936/0.3177, allocations: 2.076 MB / 434.1 MB, free: 5.285 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001254/0.3189, allocations: 0.6038 MB / 434.7 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.3191, allocations: 7.938 kB / 434.7 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.3192, allocations: 19.8 kB / 434.7 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002053/0.3194, allocations: 39.7 kB / 434.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003216/0.3197, allocations: 71.78 kB / 434.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002213/0.32, allocations: 131.5 kB / 435 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.3201, allocations: 37.86 kB / 435 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.3202, allocations: 51.84 kB / 435.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001123/0.3203, allocations: 63.64 kB / 435.1 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.985e-05/0.3204, allocations: 12 kB / 435.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.369e-05/0.3204, allocations: 8 kB / 435.1 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.051e-05/0.3205, allocations: 39.84 kB / 435.2 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.14e-05/0.3206, allocations: 67.59 kB / 435.2 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.3208, allocations: 149.3 kB / 435.4 MB, free: 3.988 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3208, allocations: 0 / 435.4 MB, free: 3.988 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3208, allocations: 0 / 435.4 MB, free: 3.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.3208, allocations: 0 / 435.4 MB, free: 3.988 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.0007444/0.3216, allocations: 458.7 kB / 435.8 MB, free: 3.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3216, allocations: 12.03 kB / 435.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.757e-05/0.3217, allocations: 24.8 kB / 435.9 MB, free: 3.457 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003453/0.322, allocations: 216.1 kB / 436.1 MB, free: 3.207 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.322, allocations: 16.31 kB / 436.1 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.051e-05/0.3221, allocations: 12.38 kB / 436.1 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000542/0.3226, allocations: 257.5 kB / 436.4 MB, free: 2.906 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.3226, allocations: 4 kB / 436.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.3227, allocations: 4 kB / 436.4 MB, free: 2.898 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.3227, allocations: 4 kB / 436.4 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000253/0.3229, allocations: 83.86 kB / 436.5 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007297/0.3237, allocations: 0.6077 MB / 437.1 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003582/0.324, allocations: 136 kB / 437.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.3242, allocations: 74.53 kB / 437.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.3242, allocations: 0 / 437.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.3242, allocations: 42.5 kB / 437.3 MB, free: 1.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.092e-06/0.3242, allocations: 4 kB / 437.3 MB, free: 1.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005596/0.3248, allocations: 189.3 kB / 437.5 MB, free: 1.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.3249, allocations: 110.8 kB / 437.6 MB, free: 1.508 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001621/0.3251, allocations: 155.3 kB / 437.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3251, allocations: 25.7 kB / 437.8 MB, free: 1.316 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.042e-05/0.3252, allocations: 120.6 kB / 437.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.901e-05/0.3252, allocations: 23.84 kB / 437.9 MB, free: 1.172 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.298e-05/0.3253, allocations: 41.64 kB / 438 MB, free: 1.125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3254, allocations: 322.8 kB / 438.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.3255, allocations: 35.97 kB / 438.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.3257, allocations: 145.6 kB / 438.5 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.326, allocations: 185.5 kB / 438.6 MB, free: 352 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.326, allocations: 0 / 438.6 MB, free: 352 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003965/0.3264, allocations: 205.3 kB / 438.8 MB, free: 140 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3264, allocations: 8 kB / 438.8 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3264, allocations: 4 kB / 438.8 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.3265, allocations: 4.469 kB / 438.9 MB, free: 124 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.3266, allocations: 47.97 kB / 438.9 MB, free: 76 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.3266, allocations: 7.938 kB / 438.9 MB, free: 68 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.3267, allocations: 19.94 kB / 438.9 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.3268, allocations: 11.98 kB / 438.9 MB, free: 36 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.0001461/0.3269, allocations: 141.7 kB / 439.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001622/0.3271, allocations: 93.47 kB / 439.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.643e-05/0.3271, allocations: 24.7 kB / 439.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3272, allocations: 4 kB / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.3272, allocations: 0 / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3272, allocations: 4 kB / 439.2 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.3275, allocations: 213.5 kB / 439.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.3275, allocations: 0 / 439.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.3276, allocations: 35.97 kB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3276, allocations: 0 / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.3277, allocations: 8 kB / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3277, allocations: 0 / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3277, allocations: 0 / 439.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005787/0.3282, allocations: 391.3 kB / 439.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.3284, allocations: 105 kB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.714e-05/0.3284, allocations: 7.984 kB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001363/0.3285, allocations: 8.062 kB / 440 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.924e-05/0.3286, allocations: 11.98 kB / 440 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.983e-06/0.3286, allocations: 0 / 440 MB, free: 14.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.802e-05/0.3287, allocations: 124.1 kB / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3287, allocations: 96 / 440.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.329, allocations: 27.94 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.0001511/0.3291, allocations: 107.2 kB / 440.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003542/0.3295, allocations: 123.7 kB / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.3295, allocations: 0 / 440.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.443e-05/0.3296, allocations: 23.98 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.0005371/0.3301, allocations: 77.27 kB / 440.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008554/0.331, allocations: 458.2 kB / 440.9 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.3313, allocations: 0.724 MB / 441.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.225e-05/0.3314, allocations: 15.44 kB / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3314, allocations: 4 kB / 441.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Templates: time 0.003981/0.3354, allocations: 1.639 MB / 443.3 MB, free: 11.55 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 -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: 7.349434803240001]