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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001239/0.001239, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001454/0.001454, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 51.91 kB / 358.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3242, allocations: 50.54 MB / 409.2 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003299/0.3275, allocations: 2.037 MB / 411.3 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001218/0.3288, allocations: 0.6037 MB / 411.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001259/0.3289, allocations: 4 kB / 411.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000138/0.3291, allocations: 19.73 kB / 411.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001868/0.3293, allocations: 31.72 kB / 411.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002929/0.3296, allocations: 71.84 kB / 412 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001758/0.3298, allocations: 127.6 kB / 412.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.33, allocations: 61.78 kB / 412.2 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.218e-05/0.3301, allocations: 55.77 kB / 412.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.97e-05/0.3302, allocations: 59.7 kB / 412.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.3302, allocations: 12 kB / 412.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.416e-05/0.3302, allocations: 12 kB / 412.3 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.402e-05/0.3303, allocations: 31.86 kB / 412.3 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.425e-05/0.3304, allocations: 67.59 kB / 412.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002093/0.3306, allocations: 147.1 kB / 412.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.3306, allocations: 0 / 412.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.3306, allocations: 0 / 412.6 MB, free: 14.28 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.393e-06/0.3306, allocations: 3.984 kB / 412.6 MB, free: 14.27 MB / 334.1 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.000621/0.3313, allocations: 457 kB / 413 MB, free: 13.78 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.3313, allocations: 8.031 kB / 413 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.97e-05/0.3313, allocations: 20.8 kB / 413 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.3316, allocations: 224 kB / 413.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.31e-05/0.3317, allocations: 8.375 kB / 413.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.283e-05/0.3317, allocations: 12.38 kB / 413.3 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004936/0.3322, allocations: 254.9 kB / 413.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3322, allocations: 0 / 413.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.3322, allocations: 8 kB / 413.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.343e-06/0.3322, allocations: 4 kB / 413.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002337/0.3325, allocations: 83.88 kB / 413.6 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006175/0.3331, allocations: 0.6037 MB / 414.2 MB, free: 12.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000322/0.3335, allocations: 147.9 kB / 414.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.3336, allocations: 82.55 kB / 414.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.3336, allocations: 7.984 kB / 414.4 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.3337, allocations: 42.5 kB / 414.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.763e-06/0.3337, allocations: 4 kB / 414.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.000538/0.3342, allocations: 185.3 kB / 414.7 MB, free: 11.92 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.689e-05/0.3343, allocations: 114.8 kB / 414.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.3345, allocations: 170.3 kB / 415 MB, free: 11.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.3345, allocations: 29.7 kB / 415 MB, free: 11.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.153e-05/0.3346, allocations: 112.5 kB / 415.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.902e-05/0.3346, allocations: 27.78 kB / 415.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.363e-05/0.3346, allocations: 33.72 kB / 415.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.569e-05/0.3348, allocations: 322.8 kB / 415.5 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.3349, allocations: 35.97 kB / 415.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.335, allocations: 144.9 kB / 415.6 MB, free: 10.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002661/0.3353, allocations: 193.6 kB / 415.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3353, allocations: 4 kB / 415.8 MB, free: 10.6 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003543/0.3357, allocations: 193.2 kB / 416 MB, free: 10.41 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.3357, allocations: 12.45 kB / 416 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3357, allocations: 8 kB / 416 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.3357, allocations: 4 kB / 416.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000161/0.3359, allocations: 39.92 kB / 416.1 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.3359, allocations: 15.92 kB / 416.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001005/0.336, allocations: 15.95 kB / 416.1 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.3361, allocations: 8 kB / 416.1 MB, free: 10.3 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001068/0.3362, allocations: 145.6 kB / 416.3 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.3363, allocations: 89.59 kB / 416.4 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.02e-05/0.3364, allocations: 16.72 kB / 416.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.3364, allocations: 4 kB / 416.4 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3364, allocations: 3.938 kB / 416.4 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.3364, allocations: 7.984 kB / 416.4 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002624/0.3367, allocations: 218 kB / 416.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3367, allocations: 0 / 416.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.3369, allocations: 35.97 kB / 416.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.3369, allocations: 0 / 416.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.3369, allocations: 8 kB / 416.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.758e-06/0.3369, allocations: 7.938 kB / 416.7 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3369, allocations: 3.938 kB / 416.7 MB, free: 9.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005045/0.3374, allocations: 383.4 kB / 417 MB, free: 9.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.675e-05/0.3375, allocations: 105 kB / 417.1 MB, free: 9.191 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.19e-05/0.3376, allocations: 8.062 kB / 417.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.3377, allocations: 11.98 kB / 417.2 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.72e-05/0.3377, allocations: 0 / 417.2 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.045e-05/0.3378, allocations: 7.984 kB / 417.2 MB, free: 9.164 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.337e-05/0.3379, allocations: 119.2 kB / 417.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3379, allocations: 0 / 417.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003112/0.3382, allocations: 24 kB / 417.3 MB, free: 9.023 MB / 334.1 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.0001058/0.3383, allocations: 111.2 kB / 417.4 MB, free: 8.906 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003172/0.3386, allocations: 123.3 kB / 417.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3386, allocations: 0 / 417.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.447e-05/0.3387, allocations: 32.91 kB / 417.6 MB, free: 8.758 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.3392, allocations: 71.56 kB / 417.6 MB, free: 8.691 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006936/0.3399, allocations: 421.5 kB / 418 MB, free: 8.246 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002899/0.3402, allocations: 0.724 MB / 418.8 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.547e-05/0.3403, allocations: 13.42 kB / 418.8 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.426e-05/0.3403, allocations: 11.44 kB / 418.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3403, allocations: 0 / 418.8 MB, free: 7.473 MB / 334.1 MB Notification: Performance of Templates: time 0.003899/0.3442, allocations: 1.353 MB / 420.1 MB, free: 6.16 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches