Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001318, allocations: 117.1 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001499/0.001499, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3211, allocations: 50.54 MB / 409.2 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003245/0.3244, allocations: 2.002 MB / 411.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009136/0.3253, allocations: 0.5453 MB / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.423e-05/0.3255, allocations: 0 / 411.8 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.3256, allocations: 19.8 kB / 411.8 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.161e-05/0.3257, allocations: 19.73 kB / 411.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002815/0.326, allocations: 67.38 kB / 411.9 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.3261, allocations: 123.5 kB / 412 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.3263, allocations: 49.41 kB / 412 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.429e-05/0.3264, allocations: 51.78 kB / 412.1 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.331e-05/0.3265, allocations: 55.77 kB / 412.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.3265, allocations: 12 kB / 412.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.86e-05/0.3265, allocations: 8 kB / 412.2 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.883e-05/0.3266, allocations: 27.91 kB / 412.2 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.245e-05/0.3266, allocations: 59.67 kB / 412.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001842/0.3268, allocations: 131.2 kB / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3268, allocations: 0 / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3268, allocations: 0 / 412.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.929e-06/0.3268, allocations: 0 / 412.4 MB, free: 14.41 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005776/0.3274, allocations: 427 kB / 412.8 MB, free: 13.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3275, allocations: 8.031 kB / 412.8 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.331e-05/0.3275, allocations: 16.84 kB / 412.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002394/0.3278, allocations: 212.1 kB / 413 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.399e-05/0.3278, allocations: 8.375 kB / 413 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.585e-05/0.3278, allocations: 16.33 kB / 413.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004607/0.3283, allocations: 242.9 kB / 413.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.3283, allocations: 0 / 413.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.3283, allocations: 7.938 kB / 413.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.161e-06/0.3283, allocations: 4 kB / 413.3 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002316/0.3286, allocations: 87.86 kB / 413.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006107/0.3292, allocations: 0.5922 MB / 414 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000261/0.3295, allocations: 143.9 kB / 414.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.3296, allocations: 78.62 kB / 414.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.3297, allocations: 4 kB / 414.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.3297, allocations: 42.5 kB / 414.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.315e-06/0.3297, allocations: 7.922 kB / 414.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004902/0.3302, allocations: 173.4 kB / 414.4 MB, free: 12.13 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.162e-05/0.3303, allocations: 114.9 kB / 414.5 MB, free: 11.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.431e-05/0.3304, allocations: 130.1 kB / 414.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.3304, allocations: 25.7 kB / 414.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.736e-05/0.3305, allocations: 115.8 kB / 414.8 MB, free: 11.7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.3305, allocations: 27.78 kB / 414.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.955e-05/0.3306, allocations: 37.7 kB / 414.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.3307, allocations: 318.8 kB / 415.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.3308, allocations: 39.97 kB / 415.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.3309, allocations: 131 kB / 415.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002648/0.3312, allocations: 180.7 kB / 415.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.3312, allocations: 4 kB / 415.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003285/0.3316, allocations: 185.7 kB / 415.7 MB, free: 10.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.3316, allocations: 10.97 kB / 415.7 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.3316, allocations: 8 kB / 415.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.3316, allocations: 11.92 kB / 415.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.3318, allocations: 43.92 kB / 415.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.3318, allocations: 4 kB / 415.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.69e-05/0.3319, allocations: 19.88 kB / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.3319, allocations: 12 kB / 415.8 MB, free: 10.58 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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 8.884e-05/0.332, allocations: 125.8 kB / 415.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001452/0.3322, allocations: 89.58 kB / 416 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.3322, allocations: 20.64 kB / 416 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-06/0.3322, allocations: 0 / 416 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3323, allocations: 480 / 416 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3323, allocations: 4 kB / 416 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002424/0.3325, allocations: 209.5 kB / 416.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.3325, allocations: 3.938 kB / 416.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.3327, allocations: 27.98 kB / 416.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.3327, allocations: 7.938 kB / 416.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.3327, allocations: 3.938 kB / 416.3 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.3327, allocations: 11.94 kB / 416.3 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.3327, allocations: 3.984 kB / 416.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005021/0.3332, allocations: 367.6 kB / 416.7 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.071e-05/0.3333, allocations: 85.02 kB / 416.8 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.3333, allocations: 12 kB / 416.8 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.3335, allocations: 15.98 kB / 416.8 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.96e-05/0.3335, allocations: 4 kB / 416.8 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.286e-06/0.3335, allocations: 4 kB / 416.8 MB, free: 9.496 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.971e-05/0.3336, allocations: 110.8 kB / 416.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.362e-06/0.3336, allocations: 0 / 416.9 MB, free: 9.391 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.3339, allocations: 27.94 kB / 416.9 MB, free: 9.363 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 (14): * Single equations (assignments): 14 * 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.0001008/0.334, allocations: 99.25 kB / 417 MB, free: 9.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003067/0.3343, allocations: 115.8 kB / 417.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3343, allocations: 0 / 417.1 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.306e-05/0.3344, allocations: 28.84 kB / 417.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004484/0.3349, allocations: 60 kB / 417.2 MB, free: 9.062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006503/0.3355, allocations: 385.3 kB / 417.6 MB, free: 8.652 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002972/0.3358, allocations: 0.7123 MB / 418.3 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.17e-05/0.3359, allocations: 12.59 kB / 418.3 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.431e-05/0.3359, allocations: 19.44 kB / 418.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3359, allocations: 0 / 418.3 MB, free: 7.883 MB / 334.1 MB Notification: Performance of Templates: time 0.004012/0.34, allocations: 1.192 MB / 419.5 MB, free: 6.73 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches