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.001226/0.001226, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.001442/0.001442, allocations: 163.6 kB / 24.99 MB, free: 8.746 MB / 18.57 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 0.9962/0.9962, allocations: 177.1 MB / 205.3 MB, free: 5.633 MB / 186.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 1.262e-06/1.262e-06, allocations: 0 / 273 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.611e-05, allocations: 2.312 kB / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002671/0.002697, allocations: 2.092 MB / 275.1 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008104/0.003507, allocations: 0.588 MB / 275.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001001/0.003607, allocations: 4 kB / 275.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 9.92e-05/0.003706, allocations: 19.73 kB / 275.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000144/0.00385, allocations: 31.72 kB / 275.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002019/0.004052, allocations: 71.73 kB / 275.8 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001417/0.004194, allocations: 127.5 kB / 276 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.00431, allocations: 46.05 kB / 276 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.722e-05/0.004397, allocations: 71.86 kB / 276.1 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.586e-05/0.004463, allocations: 51.81 kB / 276.1 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.39e-05/0.004487, allocations: 12 kB / 276.1 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.375e-05/0.0045, allocations: 8 kB / 276.1 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.699e-05/0.004547, allocations: 31.91 kB / 276.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.268e-05/0.00459, allocations: 43.84 kB / 276.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001426/0.004733, allocations: 111.5 kB / 276.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.004734, allocations: 0 / 276.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.004736, allocations: 0 / 276.3 MB, free: 14.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.976e-06/0.004738, allocations: 0 / 276.3 MB, free: 14.56 MB / 266.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.000413/0.005151, allocations: 471.9 kB / 276.8 MB, free: 14.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.005182, allocations: 16.03 kB / 276.8 MB, free: 14.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.411e-05/0.005226, allocations: 28.8 kB / 276.8 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001676/0.005394, allocations: 162.8 kB / 277 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.005405, allocations: 16.31 kB / 277 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.457e-05/0.005429, allocations: 20.31 kB / 277 MB, free: 13.8 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.00573, allocations: 240.8 kB / 277.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.00574, allocations: 4.188 kB / 277.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.00575, allocations: 4.375 kB / 277.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.005758, allocations: 7.938 kB / 277.3 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.427e-05/0.005832, allocations: 43.89 kB / 277.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004366/0.006269, allocations: 0.6407 MB / 278 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001912/0.00646, allocations: 141.2 kB / 278.1 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.127e-05/0.006521, allocations: 59.27 kB / 278.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.674e-05/0.006538, allocations: 11.98 kB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.006558, allocations: 37.39 kB / 278.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.715e-06/0.00656, allocations: 3.984 kB / 278.2 MB, free: 12.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002132/0.006774, allocations: 129.4 kB / 278.3 MB, free: 12.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.088e-05/0.006824, allocations: 110.8 kB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.006932, allocations: 208.5 kB / 278.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.27e-05/0.006945, allocations: 29.7 kB / 278.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.059e-05/0.007006, allocations: 163.3 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.659e-05/0.007022, allocations: 23.78 kB / 278.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.007056, allocations: 31.5 kB / 278.9 MB, free: 11.72 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.007168, allocations: 0.4961 MB / 279.4 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.938e-05/0.007198, allocations: 15.94 kB / 279.4 MB, free: 11.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.286e-05/0.007251, allocations: 85.48 kB / 279.5 MB, free: 11.08 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.762e-05/0.007328, allocations: 101.4 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.00733, allocations: 0 / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001108/0.007441, allocations: 109.5 kB / 279.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.007451, allocations: 10.59 kB / 279.7 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.007457, allocations: 8 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.007467, allocations: 7.938 kB / 279.7 MB, free: 10.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.564e-05/0.007532, allocations: 23.98 kB / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.007537, allocations: 0 / 279.7 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.633e-05/0.007573, allocations: 16.09 kB / 279.8 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.007582, allocations: 15.98 kB / 279.8 MB, free: 10.76 MB / 266.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 6.856e-05/0.007651, allocations: 168.5 kB / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.668e-05/0.007738, allocations: 81.53 kB / 280 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.963e-05/0.007777, allocations: 16.78 kB / 280 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.00778, allocations: 4 kB / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.007783, allocations: 0 / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.007789, allocations: 3.984 kB / 280 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001465/0.007935, allocations: 160.5 kB / 280.2 MB, free: 10.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.007937, allocations: 4 kB / 280.2 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.413e-05/0.008022, allocations: 31.98 kB / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.008025, allocations: 7.984 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.008038, allocations: 4 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.008039, allocations: 0 / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.008041, allocations: 4 kB / 280.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002391/0.00828, allocations: 414.5 kB / 280.6 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.589e-05/0.008316, allocations: 23.88 kB / 280.7 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.579e-05/0.008332, allocations: 8 kB / 280.7 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.207e-05/0.008394, allocations: 3.984 kB / 280.7 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.616e-05/0.00842, allocations: 4 kB / 280.7 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.008426, allocations: 12.03 kB / 280.7 MB, free: 9.746 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.74e-05/0.008484, allocations: 148.7 kB / 280.8 MB, free: 9.602 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008484, allocations: 4 kB / 280.8 MB, free: 9.598 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001811/0.008665, allocations: 27.89 kB / 280.9 MB, free: 9.57 MB / 266.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 6.749e-05/0.008732, allocations: 107.2 kB / 281 MB, free: 9.457 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001048/0.008837, allocations: 63.19 kB / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.00884, allocations: 8 kB / 281 MB, free: 9.387 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.399e-05/0.008864, allocations: 20.11 kB / 281.1 MB, free: 9.363 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.009168, allocations: 56.27 kB / 281.1 MB, free: 9.309 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005694/0.009737, allocations: 379.3 kB / 281.5 MB, free: 8.902 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.408e-05/0.009782, allocations: 75.33 kB / 281.6 MB, free: 8.809 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.781e-05/0.009809, allocations: 16.58 kB / 281.6 MB, free: 8.793 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.668e-05/0.009836, allocations: 12.5 kB / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.009837, allocations: 0 / 281.6 MB, free: 8.781 MB / 266.7 MB Notification: Performance of Templates: time 0.002815/0.01265, allocations: 1.368 MB / 283 MB, free: 7.469 MB / 266.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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9881373120006174]