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.001174/0.001174, allocations: 111.6 kB / 17.06 MB, free: 6 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.001879/0.001879, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 43.94 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2975, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003574/0.3012, allocations: 1.993 MB / 402.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008857/0.3021, allocations: 0.518 MB / 403.2 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001332/0.3022, allocations: 7.938 kB / 403.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.3024, allocations: 15.8 kB / 403.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.739e-05/0.3025, allocations: 27.78 kB / 403.3 MB, free: 6.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003404/0.3028, allocations: 55.88 kB / 403.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.303, allocations: 115.6 kB / 403.4 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.3032, allocations: 57.39 kB / 403.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.314e-05/0.3033, allocations: 51.8 kB / 403.5 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001114/0.3035, allocations: 59.69 kB / 403.6 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.3035, allocations: 8 kB / 403.6 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.958e-05/0.3035, allocations: 12 kB / 403.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.044e-05/0.3036, allocations: 23.92 kB / 403.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.376e-05/0.3037, allocations: 59.67 kB / 403.7 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002696/0.3039, allocations: 123.4 kB / 403.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.3039, allocations: 0 / 403.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.304, allocations: 0 / 403.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.304, allocations: 0 / 403.8 MB, free: 5.75 MB / 318.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.0007666/0.3047, allocations: 432.3 kB / 404.2 MB, free: 5.281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.023e-05/0.3048, allocations: 8.031 kB / 404.2 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.516e-05/0.3049, allocations: 16.75 kB / 404.3 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.3052, allocations: 200.2 kB / 404.5 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.777e-05/0.3052, allocations: 12.38 kB / 404.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.72e-05/0.3053, allocations: 20.3 kB / 404.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005351/0.3058, allocations: 238.9 kB / 404.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.3059, allocations: 7.938 kB / 404.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.816e-05/0.3059, allocations: 4 kB / 404.7 MB, free: 4.723 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.3059, allocations: 4 kB / 404.7 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002411/0.3061, allocations: 83.88 kB / 404.8 MB, free: 4.637 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007121/0.3069, allocations: 0.5842 MB / 405.4 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.3072, allocations: 147.9 kB / 405.5 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.3073, allocations: 78.58 kB / 405.6 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.3074, allocations: 7.984 kB / 405.6 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.3074, allocations: 34.55 kB / 405.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 2.845e-06/0.3074, allocations: 0 / 405.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005069/0.3079, allocations: 193.2 kB / 405.9 MB, free: 3.477 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.924e-05/0.308, allocations: 114.9 kB / 406 MB, free: 3.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.929e-05/0.3081, allocations: 122.1 kB / 406.1 MB, free: 3.207 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.3082, allocations: 33.7 kB / 406.1 MB, free: 3.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.884e-05/0.3082, allocations: 111.9 kB / 406.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.697e-05/0.3083, allocations: 27.64 kB / 406.3 MB, free: 3.027 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.132e-05/0.3083, allocations: 33.67 kB / 406.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.3085, allocations: 322.8 kB / 406.6 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.3086, allocations: 39.91 kB / 406.6 MB, free: 2.625 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001621/0.3087, allocations: 135.9 kB / 406.8 MB, free: 2.449 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002768/0.309, allocations: 180.7 kB / 407 MB, free: 2.227 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.309, allocations: 0 / 407 MB, free: 2.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003239/0.3094, allocations: 181.6 kB / 407.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3094, allocations: 8.062 kB / 407.1 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.3094, allocations: 4 kB / 407.1 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.3094, allocations: 11.94 kB / 407.2 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.3096, allocations: 47.91 kB / 407.2 MB, free: 1.973 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.3096, allocations: 7.938 kB / 407.2 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.899e-05/0.3097, allocations: 23.83 kB / 407.2 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.3098, allocations: 8 kB / 407.2 MB, free: 1.934 MB / 318.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.0001013/0.3099, allocations: 126.4 kB / 407.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001485/0.31, allocations: 85.59 kB / 407.4 MB, free: 1.711 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.661e-05/0.3101, allocations: 16.66 kB / 407.5 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3101, allocations: 4 kB / 407.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.3101, allocations: 0 / 407.5 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.3101, allocations: 3.984 kB / 407.5 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.3104, allocations: 201.5 kB / 407.7 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3104, allocations: 4 kB / 407.7 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001708/0.3106, allocations: 36.38 kB / 407.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.3106, allocations: 0 / 407.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.3106, allocations: 11.94 kB / 407.7 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3106, allocations: 4 kB / 407.7 MB, free: 1.379 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3106, allocations: 4 kB / 407.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005621/0.3112, allocations: 371.4 kB / 408.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.3113, allocations: 89.11 kB / 408.2 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.3113, allocations: 7.938 kB / 408.2 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.3114, allocations: 11.94 kB / 408.2 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.3115, allocations: 3.984 kB / 408.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.825e-06/0.3115, allocations: 4 kB / 408.2 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.915e-05/0.3116, allocations: 102.5 kB / 408.3 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3116, allocations: 0 / 408.3 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.3119, allocations: 31.84 kB / 408.3 MB, free: 0.7305 MB / 318.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.0001036/0.312, allocations: 107.2 kB / 408.4 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003497/0.3124, allocations: 115.7 kB / 408.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3124, allocations: 0 / 408.5 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.117e-05/0.3125, allocations: 32.8 kB / 408.6 MB, free: 484 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004872/0.313, allocations: 53.75 kB / 408.6 MB, free: 432 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007489/0.3137, allocations: 408.3 kB / 409 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.3141, allocations: 0.7123 MB / 409.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.314e-05/0.3141, allocations: 8.656 kB / 409.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.733e-05/0.3142, allocations: 15.42 kB / 409.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3142, allocations: 0 / 409.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of Templates: time 0.003827/0.318, allocations: 1.185 MB / 411 MB, free: 14.08 MB / 334.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/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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches