Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001504/0.001504, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001996/0.001996, allocations: 206.8 kB / 24.48 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.961/1.961, allocations: 230.6 MB / 258.2 MB, free: 7.809 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_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_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002099/0.002099, allocations: 51.92 kB / 378.9 MB, free: 2.469 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3014, allocations: 53.37 MB / 432.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00442/0.3058, allocations: 2.004 MB / 434.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.3074, allocations: 0.5765 MB / 434.9 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001923/0.3076, allocations: 4 kB / 434.9 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001607/0.3078, allocations: 15.8 kB / 434.9 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002744/0.3081, allocations: 35.72 kB / 434.9 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003968/0.3085, allocations: 75.73 kB / 435 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002801/0.3087, allocations: 127.6 kB / 435.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.3089, allocations: 45 kB / 435.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00013/0.309, allocations: 55.72 kB / 435.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000125/0.3092, allocations: 63.69 kB / 435.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/0.3092, allocations: 8 kB / 435.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.043e-05/0.3092, allocations: 12 kB / 435.3 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.09e-05/0.3093, allocations: 31.92 kB / 435.4 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.445e-05/0.3094, allocations: 51.67 kB / 435.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002972/0.3097, allocations: 147 kB / 435.6 MB, free: 3.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.3097, allocations: 4 kB / 435.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3097, allocations: 4 kB / 435.6 MB, free: 3.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.3097, allocations: 0 / 435.6 MB, free: 3.445 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.0007258/0.3104, allocations: 383.6 kB / 435.9 MB, free: 3.043 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3105, allocations: 8.031 kB / 435.9 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.061e-05/0.3105, allocations: 24.8 kB / 436 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000345/0.3109, allocations: 162.2 kB / 436.1 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.706e-05/0.3109, allocations: 12.38 kB / 436.1 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.385e-05/0.3109, allocations: 12.38 kB / 436.1 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006276/0.3116, allocations: 246.9 kB / 436.4 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.883e-05/0.3116, allocations: 4 kB / 436.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.3116, allocations: 4 kB / 436.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.3116, allocations: 7.938 kB / 436.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.3119, allocations: 90.25 kB / 436.5 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007269/0.3127, allocations: 0.5002 MB / 437 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004301/0.3131, allocations: 135.9 kB / 437.1 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002026/0.3133, allocations: 74.61 kB / 437.2 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.725e-05/0.3133, allocations: 4 kB / 437.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.128e-05/0.3134, allocations: 42.56 kB / 437.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.603e-06/0.3134, allocations: 0 / 437.2 MB, free: 1.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000653/0.314, allocations: 181.4 kB / 437.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.778e-05/0.3141, allocations: 126.7 kB / 437.5 MB, free: 1.258 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.3143, allocations: 150.2 kB / 437.7 MB, free: 1.102 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/0.3143, allocations: 25.7 kB / 437.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.9e-05/0.3144, allocations: 120.5 kB / 437.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.934e-05/0.3144, allocations: 31.77 kB / 437.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.011e-05/0.3145, allocations: 37.84 kB / 437.9 MB, free: 0.875 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.3147, allocations: 322.8 kB / 438.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.3148, allocations: 35.97 kB / 438.3 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.315, allocations: 133.7 kB / 438.4 MB, free: 344 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003793/0.3154, allocations: 189.5 kB / 438.6 MB, free: 104 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3154, allocations: 4 kB / 438.6 MB, free: 100 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005145/0.3159, allocations: 197.1 kB / 438.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.3159, allocations: 8.469 kB / 438.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.316, allocations: 8 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.316, allocations: 4 kB / 438.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.3162, allocations: 43.92 kB / 438.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.569e-05/0.3162, allocations: 11.92 kB / 438.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001508/0.3163, allocations: 23.89 kB / 438.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.726e-05/0.3164, allocations: 8 kB / 438.9 MB, free: 15.79 MB / 350.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.0001465/0.3165, allocations: 137.8 kB / 439 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001952/0.3167, allocations: 97.84 kB / 439.1 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.986e-05/0.3168, allocations: 24.7 kB / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.3168, allocations: 0 / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.3168, allocations: 4 kB / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3168, allocations: 0 / 439.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002984/0.3171, allocations: 137.2 kB / 439.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3171, allocations: 3.938 kB / 439.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002356/0.3173, allocations: 43.91 kB / 439.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.3173, allocations: 3.938 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.465e-05/0.3174, allocations: 4 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3174, allocations: 0 / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.3174, allocations: 4 kB / 439.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006617/0.318, allocations: 383.4 kB / 439.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.362e-05/0.3181, allocations: 31.8 kB / 439.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.284e-05/0.3181, allocations: 8 kB / 439.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001881/0.3183, allocations: 7.984 kB / 439.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.3184, allocations: 7.984 kB / 439.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.3184, allocations: 4 kB / 439.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.3185, allocations: 120.1 kB / 439.9 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3185, allocations: 4.062 kB / 439.9 MB, free: 14.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000462/0.319, allocations: 27.95 kB / 439.9 MB, free: 14.7 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.0001173/0.3191, allocations: 107.1 kB / 440 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004226/0.3195, allocations: 116.9 kB / 440.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3195, allocations: 0 / 440.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.3196, allocations: 31.98 kB / 440.2 MB, free: 14.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/0.3203, allocations: 67.97 kB / 440.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.3214, allocations: 430.6 kB / 440.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001593/0.3215, allocations: 114.6 kB / 440.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.908e-05/0.3216, allocations: 9.438 kB / 440.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.676e-05/0.3216, allocations: 19.42 kB / 440.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3216, allocations: 3.938 kB / 440.8 MB, free: 13.76 MB / 350.1 MB Notification: Performance of Templates: time 0.005904/0.3275, allocations: 1.605 MB / 442.4 MB, free: 12.22 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 6.096617175004212]