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.001253/0.001253, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001917/0.003169, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0008874/0.0008874, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001311/0.002199, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.034/1.034, allocations: 177.2 MB / 189.8 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1155/1.149, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] 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 2.755e-06/2.755e-06, allocations: 0 / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.105e-05/3.38e-05, allocations: 9.828 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003334/0.003368, allocations: 2.143 MB / 246.8 MB, free: 12.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.004402, allocations: 0.6073 MB / 247.4 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001527/0.004554, allocations: 7.938 kB / 247.4 MB, free: 11.47 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.004674, allocations: 15.8 kB / 247.5 MB, free: 11.45 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00015/0.004824, allocations: 35.66 kB / 247.5 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.005148, allocations: 67.73 kB / 247.6 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.00536, allocations: 131.5 kB / 247.7 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.005502, allocations: 46.69 kB / 247.7 MB, free: 11.18 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.005652, allocations: 87.8 kB / 247.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.005756, allocations: 43.81 kB / 247.9 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.747e-05/0.005794, allocations: 16 kB / 247.9 MB, free: 11.03 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.287e-05/0.005816, allocations: 8 kB / 247.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.371e-05/0.00588, allocations: 27.94 kB / 247.9 MB, free: 11 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.734e-05/0.005928, allocations: 35.88 kB / 247.9 MB, free: 10.96 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002205/0.006148, allocations: 91.55 kB / 248 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.294e-05/0.006161, allocations: 0 / 248 MB, free: 10.87 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.005e-06/0.006164, allocations: 0 / 248 MB, free: 10.87 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.445e-05/0.006178, allocations: 4 kB / 248 MB, free: 10.87 MB / 250.7 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.0005389/0.006717, allocations: 379.9 kB / 248.4 MB, free: 10.47 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.006751, allocations: 15.97 kB / 248.4 MB, free: 10.46 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.006796, allocations: 20.92 kB / 248.4 MB, free: 10.44 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001883/0.006985, allocations: 150.3 kB / 248.6 MB, free: 10.27 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.007001, allocations: 8.375 kB / 248.6 MB, free: 10.26 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.007035, allocations: 16.36 kB / 248.6 MB, free: 10.24 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.007352, allocations: 219.7 kB / 248.8 MB, free: 10 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.007364, allocations: 192 / 248.8 MB, free: 10 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.007376, allocations: 8.375 kB / 248.8 MB, free: 9.992 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.007383, allocations: 3.938 kB / 248.8 MB, free: 9.988 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.994e-05/0.007443, allocations: 39.89 kB / 248.9 MB, free: 9.949 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004794/0.007922, allocations: 465.9 kB / 249.3 MB, free: 9.453 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002226/0.008145, allocations: 107.9 kB / 249.4 MB, free: 9.32 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.034e-05/0.008185, allocations: 34.58 kB / 249.5 MB, free: 9.277 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.008212, allocations: 12.08 kB / 249.5 MB, free: 9.266 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.00824, allocations: 42.48 kB / 249.5 MB, free: 9.215 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.224e-06/0.008242, allocations: 0 / 249.5 MB, free: 9.215 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001973/0.008439, allocations: 97.53 kB / 249.6 MB, free: 9.113 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.008518, allocations: 110.8 kB / 249.7 MB, free: 8.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001095/0.008628, allocations: 149.2 kB / 249.9 MB, free: 8.824 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.473e-05/0.008642, allocations: 29.7 kB / 249.9 MB, free: 8.789 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.345e-05/0.008696, allocations: 112.5 kB / 250 MB, free: 8.676 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.008719, allocations: 27.78 kB / 250 MB, free: 8.648 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.894e-05/0.008758, allocations: 25.7 kB / 250.1 MB, free: 8.617 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.008866, allocations: 326.9 kB / 250.4 MB, free: 8.289 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.965e-05/0.008885, allocations: 8 kB / 250.4 MB, free: 8.281 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.119e-05/0.008937, allocations: 62.78 kB / 250.5 MB, free: 8.195 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.076e-05/0.009017, allocations: 78.72 kB / 250.5 MB, free: 8.094 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.00902, allocations: 4 kB / 250.5 MB, free: 8.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001108/0.009131, allocations: 85.48 kB / 250.6 MB, free: 8 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.009147, allocations: 4 kB / 250.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.009155, allocations: 7.984 kB / 250.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.009172, allocations: 4 kB / 250.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.00934, allocations: 35.58 kB / 250.7 MB, free: 7.953 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.009345, allocations: 0 / 250.7 MB, free: 7.953 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.428e-05/0.009389, allocations: 15.89 kB / 250.7 MB, free: 7.938 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.009398, allocations: 12.22 kB / 250.7 MB, free: 7.926 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (12): * Single equations (assignments): 12 * 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 9.939e-05/0.009498, allocations: 116.6 kB / 250.8 MB, free: 7.801 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.117e-05/0.009589, allocations: 65.61 kB / 250.9 MB, free: 7.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.514e-05/0.009644, allocations: 20.77 kB / 250.9 MB, free: 7.711 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.009649, allocations: 4 kB / 250.9 MB, free: 7.707 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.009653, allocations: 0 / 250.9 MB, free: 7.707 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.009658, allocations: 0 / 250.9 MB, free: 7.707 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001481/0.009806, allocations: 101.8 kB / 251 MB, free: 7.59 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.009808, allocations: 0 / 251 MB, free: 7.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.009928, allocations: 35.92 kB / 251 MB, free: 7.555 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.95e-05/0.009978, allocations: 32.06 kB / 251.1 MB, free: 7.523 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.009981, allocations: 0 / 251.1 MB, free: 7.523 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.484e-05/0.009996, allocations: 4 kB / 251.1 MB, free: 7.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.009999, allocations: 4 kB / 251.1 MB, free: 7.516 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.009999, allocations: 0 / 251.1 MB, free: 7.516 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.0102, allocations: 247.5 kB / 251.3 MB, free: 7.254 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.072e-05/0.01022, allocations: 16.05 kB / 251.3 MB, free: 7.238 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.392e-05/0.01029, allocations: 0 / 251.3 MB, free: 7.238 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.01032, allocations: 7.984 kB / 251.3 MB, free: 7.23 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.01033, allocations: 8 kB / 251.4 MB, free: 7.223 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.218e-05/0.01037, allocations: 33.52 kB / 251.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01037, allocations: 0 / 251.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001791/0.01055, allocations: 27.95 kB / 251.4 MB, free: 7.16 MB / 250.7 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 9.135e-05/0.01064, allocations: 92.28 kB / 251.5 MB, free: 7.062 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001043/0.01075, allocations: 48.78 kB / 251.6 MB, free: 7.012 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.01075, allocations: 0 / 251.6 MB, free: 7.012 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.034e-05/0.01078, allocations: 29.38 kB / 251.6 MB, free: 6.98 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003847/0.01117, allocations: 263.6 kB / 251.8 MB, free: 6.684 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001431/0.0126, allocations: 326.8 kB / 252.2 MB, free: 6.328 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.434e-05/0.01265, allocations: 75.33 kB / 252.2 MB, free: 6.234 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.132e-05/0.01269, allocations: 12.64 kB / 252.2 MB, free: 6.219 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.218e-05/0.01278, allocations: 63.38 kB / 252.3 MB, free: 6.156 MB / 250.7 MB Notification: Performance of SimCode: time 1.002e-06/0.01278, allocations: 0 / 252.3 MB, free: 6.156 MB / 250.7 MB Notification: Performance of Templates: time 0.003947/0.01672, allocations: 1.449 MB / 253.8 MB, free: 4.77 MB / 250.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.808113639242947]