Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001402/0.001402, allocations: 114.1 kB / 17.29 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00149/0.00149, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 46.48 kB / 300.8 MB, free: 6.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08452, allocations: 49.45 MB / 350.2 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003096/0.08765, allocations: 2.05 MB / 352.3 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007394/0.08841, allocations: 0.4909 MB / 352.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.574e-05/0.08851, allocations: 4 kB / 352.8 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.08864, allocations: 7.875 kB / 352.8 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.654e-05/0.08871, allocations: 23.84 kB / 352.8 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002787/0.089, allocations: 57.75 kB / 352.9 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001541/0.08916, allocations: 119.6 kB / 353 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.08931, allocations: 49.3 kB / 353 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.212e-05/0.08941, allocations: 55.78 kB / 353.1 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.851e-05/0.0895, allocations: 51.7 kB / 353.1 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.08952, allocations: 12 kB / 353.1 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.046e-05/0.08955, allocations: 12 kB / 353.2 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.919e-05/0.08958, allocations: 23.92 kB / 353.2 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.085e-05/0.08965, allocations: 59.67 kB / 353.2 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001302/0.08978, allocations: 88.05 kB / 353.3 MB, free: 1.676 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.08979, allocations: 0 / 353.3 MB, free: 1.676 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.0898, allocations: 0 / 353.3 MB, free: 1.676 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.08981, allocations: 0 / 353.3 MB, free: 1.676 MB / 286.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.0005509/0.09037, allocations: 431 kB / 353.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.09042, allocations: 12.03 kB / 353.8 MB, free: 1.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.62e-05/0.09047, allocations: 16.78 kB / 353.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.09067, allocations: 212 kB / 354 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.09069, allocations: 12.36 kB / 354 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.196e-05/0.09072, allocations: 16.28 kB / 354 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004531/0.09118, allocations: 238.9 kB / 354.2 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.09121, allocations: 0 / 354.2 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.674e-05/0.09123, allocations: 4 kB / 354.2 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.09124, allocations: 7.938 kB / 354.3 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.09151, allocations: 91.11 kB / 354.3 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005969/0.09211, allocations: 0.592 MB / 354.9 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.09237, allocations: 139.9 kB / 355.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.09254, allocations: 78.64 kB / 355.1 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.09258, allocations: 11.91 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.09261, allocations: 34.56 kB / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.09262, allocations: 0 / 355.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004914/0.09311, allocations: 185.2 kB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/0.09319, allocations: 106.8 kB / 355.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.785e-05/0.09329, allocations: 134.1 kB / 355.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.09332, allocations: 25.7 kB / 355.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.15e-05/0.09338, allocations: 112 kB / 355.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.09342, allocations: 31.64 kB / 355.8 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.268e-05/0.09348, allocations: 29.84 kB / 355.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.0936, allocations: 326.8 kB / 356.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.09372, allocations: 35.97 kB / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.09388, allocations: 136.8 kB / 356.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/0.09416, allocations: 180.7 kB / 356.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/0.09417, allocations: 384 / 356.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000336/0.09451, allocations: 189.3 kB / 356.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.09454, allocations: 8 kB / 356.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.09455, allocations: 4 kB / 356.7 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.09457, allocations: 11.88 kB / 356.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001621/0.09474, allocations: 43.91 kB / 356.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.09476, allocations: 4 kB / 356.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.893e-05/0.09487, allocations: 23.92 kB / 356.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.09488, allocations: 8.484 kB / 356.8 MB, free: 13.85 MB / 302.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 0.0001011/0.09499, allocations: 133.7 kB / 356.9 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.09513, allocations: 89.44 kB / 357 MB, free: 13.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.286e-05/0.09518, allocations: 24.64 kB / 357 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.09519, allocations: 0 / 357 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.0952, allocations: 7.984 kB / 357 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.09521, allocations: 0 / 357 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002529/0.09547, allocations: 193.6 kB / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.09549, allocations: 3.984 kB / 357.2 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.09566, allocations: 43.86 kB / 357.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.09568, allocations: 0 / 357.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.0957, allocations: 11.94 kB / 357.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.09571, allocations: 0 / 357.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.09571, allocations: 0 / 357.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000481/0.0962, allocations: 375 kB / 357.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.09626, allocations: 92.92 kB / 357.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.09628, allocations: 3.938 kB / 357.7 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.09642, allocations: 11.98 kB / 357.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.655e-05/0.09647, allocations: 4 kB / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-06/0.09648, allocations: 4 kB / 357.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.595e-05/0.09654, allocations: 99.27 kB / 357.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09655, allocations: 0 / 357.8 MB, free: 12.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.09687, allocations: 28.06 kB / 357.9 MB, free: 12.64 MB / 302.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 9.634e-05/0.09697, allocations: 110.2 kB / 358 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000309/0.09729, allocations: 120.6 kB / 358.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.0973, allocations: 0 / 358.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.73e-05/0.0974, allocations: 35.97 kB / 358.1 MB, free: 12.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.09792, allocations: 56.05 kB / 358.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007358/0.09867, allocations: 463.3 kB / 358.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.09893, allocations: 0.7162 MB / 359.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.095e-05/0.09897, allocations: 15.44 kB / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.09898, allocations: 0 / 359.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Templates: time 0.003111/0.1021, allocations: 1.479 MB / 360.8 MB, free: 9.602 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches