Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.002007/0.002007, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 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.002113/0.002113, allocations: 164.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.624/1.624, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.532e-06/1.532e-06, allocations: 0 / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.881e-05/3.035e-05, allocations: 2.312 kB / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004948/0.004978, allocations: 2.03 MB / 274.2 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.006614, allocations: 0.5375 MB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.006757, allocations: 4 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001656/0.006922, allocations: 15.8 kB / 274.8 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.007134, allocations: 35.66 kB / 274.8 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003387/0.007473, allocations: 63.8 kB / 274.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.007758, allocations: 123.5 kB / 275 MB, free: 15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001935/0.007951, allocations: 41.59 kB / 275 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001905/0.008142, allocations: 71.86 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001367/0.008278, allocations: 47.81 kB / 275.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.156e-05/0.00832, allocations: 12 kB / 275.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.143e-05/0.008351, allocations: 8 kB / 275.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.313e-05/0.008405, allocations: 23.92 kB / 275.2 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.794e-05/0.008502, allocations: 35.91 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000574/0.009076, allocations: 139.4 kB / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.00908, allocations: 0 / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.749e-06/0.009085, allocations: 8 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.171e-06/0.009091, allocations: 0 / 275.4 MB, free: 14.61 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009638/0.01005, allocations: 451.8 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.01011, allocations: 11.98 kB / 275.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.01021, allocations: 28.84 kB / 275.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003385/0.01055, allocations: 144.4 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.18e-05/0.01057, allocations: 8.375 kB / 276 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-05/0.01062, allocations: 20.33 kB / 276 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007742/0.0114, allocations: 268 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.774e-05/0.01141, allocations: 192 / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.01144, allocations: 4.359 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.01145, allocations: 7.938 kB / 276.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003056/0.01175, allocations: 71.91 kB / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.01286, allocations: 0.6563 MB / 277 MB, free: 12.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005268/0.01339, allocations: 161.3 kB / 277.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/0.01392, allocations: 75.12 kB / 277.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.01396, allocations: 7.984 kB / 277.2 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.605e-05/0.01402, allocations: 45.33 kB / 277.3 MB, free: 12.47 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 2.325e-06/0.01402, allocations: 3.938 kB / 277.3 MB, free: 12.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.000745/0.01477, allocations: 173.4 kB / 277.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.01491, allocations: 114.9 kB / 277.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002503/0.01516, allocations: 197.9 kB / 277.8 MB, free: 11.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.0152, allocations: 29.7 kB / 277.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.01535, allocations: 162.8 kB / 278 MB, free: 11.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.172e-05/0.01539, allocations: 23.8 kB / 278 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.129e-05/0.01547, allocations: 31.36 kB / 278 MB, free: 11.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003431/0.01582, allocations: 0.5001 MB / 278.5 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.01593, allocations: 19.98 kB / 278.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.01615, allocations: 109.4 kB / 278.6 MB, free: 11.01 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.01646, allocations: 125.5 kB / 278.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.01647, allocations: 0 / 278.8 MB, free: 10.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003956/0.01686, allocations: 133.6 kB / 278.9 MB, free: 10.72 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.01689, allocations: 4 kB / 278.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.116e-05/0.0169, allocations: 4 kB / 278.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.01692, allocations: 0 / 278.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.01709, allocations: 27.92 kB / 278.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.0171, allocations: 4 kB / 278.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.01721, allocations: 11.89 kB / 278.9 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.01724, allocations: 8 kB / 279 MB, free: 10.66 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 0.0002103/0.01745, allocations: 176.4 kB / 279.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002581/0.0177, allocations: 89.67 kB / 279.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.591e-05/0.0178, allocations: 16.78 kB / 279.2 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.01781, allocations: 7.938 kB / 279.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.01781, allocations: 0 / 279.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.01783, allocations: 7.984 kB / 279.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004165/0.01824, allocations: 156.5 kB / 279.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.01824, allocations: 0 / 279.4 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.01849, allocations: 35.92 kB / 279.4 MB, free: 10.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.21e-06/0.0185, allocations: 4 kB / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.01852, allocations: 0 / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.01852, allocations: 4 kB / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.01852, allocations: 4 kB / 279.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008556/0.01938, allocations: 481.4 kB / 279.9 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.368e-05/0.01941, allocations: 11.95 kB / 279.9 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.01945, allocations: 8 kB / 279.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.01964, allocations: 0 / 279.9 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.27e-05/0.0197, allocations: 7.984 kB / 279.9 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.01973, allocations: 8 kB / 279.9 MB, free: 9.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001436/0.01987, allocations: 143.1 kB / 280.1 MB, free: 9.449 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.01987, allocations: 0 / 280.1 MB, free: 9.449 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005119/0.02038, allocations: 31.97 kB / 280.1 MB, free: 9.418 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 0.0001774/0.02056, allocations: 111.2 kB / 280.2 MB, free: 9.301 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004031/0.02096, allocations: 87.81 kB / 280.3 MB, free: 9.211 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.02097, allocations: 0 / 280.3 MB, free: 9.211 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001239/0.02109, allocations: 35.94 kB / 280.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007898/0.02188, allocations: 63.47 kB / 280.4 MB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001027/0.02291, allocations: 362.6 kB / 280.8 MB, free: 8.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001754/0.02308, allocations: 97.3 kB / 280.9 MB, free: 8.602 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.735e-05/0.02314, allocations: 8.969 kB / 280.9 MB, free: 8.594 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.791e-05/0.0232, allocations: 16.5 kB / 280.9 MB, free: 8.578 MB / 266.7 MB Notification: Performance of SimCode: time 1.232e-06/0.0232, allocations: 4 kB / 280.9 MB, free: 8.574 MB / 266.7 MB Notification: Performance of Templates: time 0.007497/0.0307, allocations: 1.203 MB / 282.1 MB, free: 7.395 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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_trunk_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.509354008943774]