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.001336/0.001336, allocations: 85.91 kB / 22.22 MB, free: 2.285 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.001448/0.001448, allocations: 160.1 kB / 25.61 MB, free: 8.582 MB / 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 0.9565/0.9565, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.7 MB " [Timeout remaining time 179] 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.202e-06/1.202e-06, allocations: 0 / 274.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.977e-05/2.097e-05, allocations: 2.312 kB / 274.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003298/0.003319, allocations: 2.049 MB / 276.1 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.004341, allocations: 0.5629 MB / 276.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.004461, allocations: 1.781 kB / 276.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.004588, allocations: 19.8 kB / 276.7 MB, free: 1.676 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.004745, allocations: 27.72 kB / 276.7 MB, free: 1.648 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002915/0.005037, allocations: 56.59 kB / 276.8 MB, free: 1.594 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002372/0.005274, allocations: 123.5 kB / 276.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.005416, allocations: 46.22 kB / 277 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.005543, allocations: 71.8 kB / 277 MB, free: 1.352 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.86e-05/0.005631, allocations: 36.5 kB / 277.1 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.738e-05/0.005659, allocations: 12.66 kB / 277.1 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.773e-05/0.005676, allocations: 12 kB / 277.1 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.201e-05/0.005708, allocations: 30.31 kB / 277.1 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.018e-05/0.005749, allocations: 43.89 kB / 277.2 MB, free: 1.223 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.005928, allocations: 95.58 kB / 277.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.00593, allocations: 0 / 277.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.005931, allocations: 0 / 277.3 MB, free: 1.129 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.005935, allocations: 0 / 277.3 MB, free: 1.129 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004435/0.006379, allocations: 453.9 kB / 277.7 MB, free: 0.6523 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.006411, allocations: 8.031 kB / 277.7 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.092e-05/0.006452, allocations: 28.84 kB / 277.7 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.006604, allocations: 148.4 kB / 277.9 MB, free: 456 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.879e-06/0.006613, allocations: 12.88 kB / 277.9 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.434e-05/0.006638, allocations: 20.33 kB / 277.9 MB, free: 424 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.006892, allocations: 228.7 kB / 278.1 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.006902, allocations: 192 / 278.1 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.006914, allocations: 8.375 kB / 278.1 MB, free: 152 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.00692, allocations: 3.938 kB / 278.2 MB, free: 148 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.238e-05/0.006972, allocations: 39.84 kB / 278.2 MB, free: 108 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004277/0.0074, allocations: 0.6367 MB / 278.8 MB, free: 15.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.007584, allocations: 133.3 kB / 279 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.683e-05/0.007631, allocations: 51.12 kB / 279 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.007649, allocations: 7.938 kB / 279 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.007672, allocations: 37.39 kB / 279.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.007673, allocations: 0 / 279.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002076/0.007881, allocations: 113.5 kB / 279.2 MB, free: 15.01 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.00794, allocations: 114.8 kB / 279.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.151e-05/0.008032, allocations: 192.4 kB / 279.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.008047, allocations: 29.7 kB / 279.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.612e-05/0.008113, allocations: 154.8 kB / 279.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.898e-05/0.008132, allocations: 31.77 kB / 279.7 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/0.008168, allocations: 27.38 kB / 279.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.008279, allocations: 0.4961 MB / 280.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.427e-05/0.008293, allocations: 4 kB / 280.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.754e-05/0.008341, allocations: 85.41 kB / 280.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.445e-05/0.008415, allocations: 101.4 kB / 280.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.008417, allocations: 4 kB / 280.4 MB, free: 13.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.697e-05/0.008514, allocations: 97.44 kB / 280.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.008526, allocations: 4 kB / 280.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.008533, allocations: 8.219 kB / 280.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.937e-06/0.008542, allocations: 8.172 kB / 280.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.39e-05/0.008606, allocations: 27.92 kB / 280.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.008611, allocations: 4 kB / 280.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.851e-05/0.008649, allocations: 19.83 kB / 280.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-06/0.008656, allocations: 4 kB / 280.6 MB, free: 13.47 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.65e-05/0.008723, allocations: 164.5 kB / 280.7 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.23e-05/0.008805, allocations: 77.62 kB / 280.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.706e-05/0.008852, allocations: 24.7 kB / 280.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.008854, allocations: 0 / 280.8 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.008857, allocations: 8 kB / 280.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.00886, allocations: 0 / 280.8 MB, free: 13.19 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001322/0.008993, allocations: 125.1 kB / 280.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.008994, allocations: 0 / 280.9 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.497e-05/0.009079, allocations: 31.98 kB / 281 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.00908, allocations: 0 / 281 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.009091, allocations: 4 kB / 281 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.009092, allocations: 0 / 281 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.009094, allocations: 0 / 281 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.009259, allocations: 358.6 kB / 281.3 MB, free: 12.63 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.347e-05/0.009273, allocations: 15.92 kB / 281.3 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.009287, allocations: 4 kB / 281.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.964e-05/0.009346, allocations: 4 kB / 281.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.666e-05/0.009373, allocations: 7.984 kB / 281.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.009378, allocations: 4 kB / 281.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.028e-05/0.009418, allocations: 135.2 kB / 281.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.009418, allocations: 0 / 281.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001903/0.009608, allocations: 27.95 kB / 281.5 MB, free: 12.43 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 7.909e-05/0.009687, allocations: 102.4 kB / 281.6 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001061/0.009794, allocations: 71.45 kB / 281.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.009795, allocations: 0 / 281.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.15e-05/0.009816, allocations: 23.61 kB / 281.7 MB, free: 12.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002919/0.01011, allocations: 45.45 kB / 281.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005213/0.01063, allocations: 352 kB / 282.1 MB, free: 11.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.82e-05/0.01068, allocations: 79.33 kB / 282.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.816e-05/0.01071, allocations: 8.969 kB / 282.2 MB, free: 11.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.753e-05/0.01077, allocations: 82.2 kB / 282.3 MB, free: 11.62 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01077, allocations: 3.938 kB / 282.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of Templates: time 0.002966/0.01374, allocations: 1.333 MB / 283.6 MB, free: 10.33 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","",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.7354275253601372]