Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001045/0.001045, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.001117/0.001117, allocations: 169.1 kB / 24.91 MB, free: 8.762 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.9178/0.9178, allocations: 177 MB / 205.2 MB, free: 5.43 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.658e-05/2.804e-05, allocations: 5.266 kB / 273.4 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003676/0.003705, allocations: 2.076 MB / 275.4 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.004947, allocations: 0.6073 MB / 276 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.005089, allocations: 7.938 kB / 276.1 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.00521, allocations: 15.8 kB / 276.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.005405, allocations: 31.72 kB / 276.1 MB, free: 14.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003145/0.00572, allocations: 71.73 kB / 276.2 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001976/0.005918, allocations: 131.4 kB / 276.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.006055, allocations: 42.73 kB / 276.3 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.006201, allocations: 83.8 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.008e-05/0.006291, allocations: 43.88 kB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.006325, allocations: 12 kB / 276.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.085e-05/0.006346, allocations: 12 kB / 276.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.571e-05/0.006402, allocations: 31.84 kB / 276.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.179e-05/0.006454, allocations: 43.91 kB / 276.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001902/0.006644, allocations: 99.52 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.006649, allocations: 3.984 kB / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.552e-06/0.006651, allocations: 0 / 276.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.006656, allocations: 0 / 276.7 MB, free: 13.91 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.0004497/0.007106, allocations: 356.2 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.007142, allocations: 15.98 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.07e-05/0.007183, allocations: 20.92 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.007367, allocations: 161.5 kB / 277.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.271e-05/0.00738, allocations: 8.375 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.136e-05/0.007411, allocations: 16.33 kB / 277.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.007711, allocations: 215.8 kB / 277.4 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.007725, allocations: 4.172 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.007736, allocations: 4.375 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.007744, allocations: 7.938 kB / 277.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.025e-05/0.007805, allocations: 35.86 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004231/0.008228, allocations: 461.9 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.00841, allocations: 103.9 kB / 278 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.686e-05/0.008457, allocations: 42.67 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.008477, allocations: 7.984 kB / 278.1 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.282e-05/0.0085, allocations: 34.56 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.382e-06/0.008501, allocations: 0 / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001985/0.008699, allocations: 97.53 kB / 278.2 MB, free: 12.19 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.019e-05/0.00876, allocations: 114.8 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.708e-05/0.008857, allocations: 154.5 kB / 278.5 MB, free: 11.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.008871, allocations: 29.7 kB / 278.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.049e-05/0.008921, allocations: 108.6 kB / 278.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.008942, allocations: 27.89 kB / 278.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.806e-05/0.00898, allocations: 29.7 kB / 278.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.366e-05/0.009063, allocations: 326.8 kB / 279 MB, free: 11.35 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.676e-05/0.00908, allocations: 11.94 kB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.345e-05/0.009123, allocations: 58.86 kB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.512e-05/0.009199, allocations: 82.7 kB / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.009201, allocations: 0 / 279.1 MB, free: 11.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001007/0.009301, allocations: 81.48 kB / 279.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.009315, allocations: 8 kB / 279.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.009321, allocations: 3.984 kB / 279.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.009335, allocations: 4.234 kB / 279.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.918e-05/0.009414, allocations: 24 kB / 279.3 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.193e-06/0.009421, allocations: 12.14 kB / 279.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.895e-05/0.00947, allocations: 19.89 kB / 279.3 MB, free: 11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.00948, allocations: 7.938 kB / 279.3 MB, free: 10.99 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 7.044e-05/0.00955, allocations: 116.7 kB / 279.4 MB, free: 10.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.056e-05/0.009641, allocations: 69.59 kB / 279.5 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.828e-05/0.009689, allocations: 24.77 kB / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.009692, allocations: 0 / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.009694, allocations: 0 / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.009698, allocations: 4 kB / 279.5 MB, free: 10.76 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001784/0.009877, allocations: 97.73 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.009879, allocations: 4 kB / 279.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.009994, allocations: 31.98 kB / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.009996, allocations: 0 / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.01001, allocations: 8 kB / 279.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.848e-06/0.01001, allocations: 3.938 kB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.01002, allocations: 0 / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001563/0.01017, allocations: 235.6 kB / 279.9 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.469e-05/0.01022, allocations: 27.81 kB / 279.9 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.761e-05/0.01023, allocations: 8 kB / 279.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.94e-05/0.01032, allocations: 4 kB / 279.9 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.01035, allocations: 12.02 kB / 279.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.01036, allocations: 7.938 kB / 279.9 MB, free: 10.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.625e-05/0.01039, allocations: 33.69 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01039, allocations: 3.938 kB / 280 MB, free: 10.25 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002675/0.01066, allocations: 24 kB / 280 MB, free: 10.23 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 8.29e-05/0.01074, allocations: 88.36 kB / 280.1 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.926e-05/0.01083, allocations: 55.81 kB / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.01084, allocations: 448 / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.864e-05/0.01085, allocations: 24.84 kB / 280.2 MB, free: 10.05 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.0111, allocations: 50.98 kB / 280.2 MB, free: 10 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000541/0.01164, allocations: 363.3 kB / 280.6 MB, free: 9.613 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.307e-05/0.01169, allocations: 75.33 kB / 280.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.666e-05/0.01171, allocations: 8.656 kB / 280.7 MB, free: 9.508 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.716e-05/0.01178, allocations: 67.36 kB / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01178, allocations: 0 / 280.7 MB, free: 9.441 MB / 266.7 MB Notification: Performance of Templates: time 0.002821/0.0146, allocations: 1.41 MB / 282.1 MB, free: 8.094 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.648717926349491]