Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,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.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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001259, allocations: 107.2 kB / 17.74 MB, free: 5.359 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.001243/0.001243, allocations: 184.1 kB / 18.67 MB, free: 4.441 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.462/1.462, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 51.92 kB / 352 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3052, allocations: 49.42 MB / 401.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004634/0.31, allocations: 2.035 MB / 403.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001262/0.3113, allocations: 0.5687 MB / 404 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.3115, allocations: 7.938 kB / 404 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001505/0.3116, allocations: 15.8 kB / 404 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.3119, allocations: 35.72 kB / 404 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003499/0.3123, allocations: 71.8 kB / 404.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.3125, allocations: 127.5 kB / 404.2 MB, free: 6.027 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.3127, allocations: 57.84 kB / 404.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.3128, allocations: 55.78 kB / 404.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.313, allocations: 59.7 kB / 404.4 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.27e-05/0.313, allocations: 8 kB / 404.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.734e-05/0.313, allocations: 12 kB / 404.4 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.604e-05/0.3131, allocations: 35.91 kB / 404.5 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.465e-05/0.3132, allocations: 63.61 kB / 404.5 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002721/0.3135, allocations: 148.6 kB / 404.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3135, allocations: 0 / 404.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3135, allocations: 0 / 404.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.874e-06/0.3135, allocations: 0 / 404.7 MB, free: 5.594 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007934/0.3143, allocations: 458.6 kB / 405.1 MB, free: 5.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.3144, allocations: 8.031 kB / 405.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.235e-05/0.3145, allocations: 24.75 kB / 405.1 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00038/0.3148, allocations: 212 kB / 405.4 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.902e-05/0.3149, allocations: 12.31 kB / 405.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.3149, allocations: 16.38 kB / 405.4 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005943/0.3155, allocations: 267.3 kB / 405.6 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.3156, allocations: 7.844 kB / 405.6 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.215e-05/0.3156, allocations: 8 kB / 405.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.3156, allocations: 4 kB / 405.7 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003346/0.3159, allocations: 83.88 kB / 405.7 MB, free: 4.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008028/0.3168, allocations: 0.5921 MB / 406.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.3171, allocations: 147.9 kB / 406.5 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.3173, allocations: 74.64 kB / 406.6 MB, free: 3.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.386e-05/0.3174, allocations: 3.984 kB / 406.6 MB, free: 3.484 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.51e-05/0.3174, allocations: 46.5 kB / 406.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.623e-06/0.3174, allocations: 0 / 406.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005993/0.318, allocations: 185.2 kB / 406.8 MB, free: 3.242 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.854e-05/0.3181, allocations: 110.8 kB / 406.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001729/0.3183, allocations: 162.1 kB / 407 MB, free: 2.941 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.3183, allocations: 25.7 kB / 407.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.397e-05/0.3184, allocations: 120.6 kB / 407.2 MB, free: 2.789 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.3185, allocations: 27.64 kB / 407.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.469e-05/0.3185, allocations: 41.61 kB / 407.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3187, allocations: 322.8 kB / 407.6 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.3188, allocations: 35.97 kB / 407.6 MB, free: 2.355 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001839/0.319, allocations: 143.1 kB / 407.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.3194, allocations: 189.7 kB / 407.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.3194, allocations: 0 / 407.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004122/0.3198, allocations: 197.1 kB / 408.1 MB, free: 1.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.43e-05/0.3198, allocations: 8 kB / 408.1 MB, free: 1.727 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.3198, allocations: 4.469 kB / 408.1 MB, free: 1.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.3199, allocations: 8.312 kB / 408.1 MB, free: 1.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.32, allocations: 47.97 kB / 408.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.557e-05/0.3201, allocations: 7.938 kB / 408.2 MB, free: 1.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.3202, allocations: 23.83 kB / 408.2 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.3202, allocations: 11.94 kB / 408.2 MB, free: 1.625 MB / 318.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.0001299/0.3204, allocations: 138.4 kB / 408.4 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.3205, allocations: 93.42 kB / 408.5 MB, free: 1.383 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.204e-05/0.3206, allocations: 20.72 kB / 408.5 MB, free: 1.359 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3206, allocations: 4 kB / 408.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.83e-06/0.3207, allocations: 0 / 408.5 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.565e-06/0.3207, allocations: 8 kB / 408.5 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003293/0.321, allocations: 217.5 kB / 408.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.321, allocations: 0 / 408.7 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.3212, allocations: 31.98 kB / 408.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.3212, allocations: 3.984 kB / 408.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.881e-05/0.3212, allocations: 8 kB / 408.8 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3213, allocations: 0 / 408.8 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3213, allocations: 0 / 408.8 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006608/0.3219, allocations: 390.9 kB / 409.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001151/0.3221, allocations: 104.9 kB / 409.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.3221, allocations: 4 kB / 409.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.3223, allocations: 16.05 kB / 409.3 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.232e-05/0.3223, allocations: 4 kB / 409.3 MB, free: 0.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.3223, allocations: 3.938 kB / 409.3 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001083/0.3224, allocations: 119.2 kB / 409.4 MB, free: 388 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3224, allocations: 0 / 409.4 MB, free: 388 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003551/0.3228, allocations: 24 kB / 409.4 MB, free: 364 kB / 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 (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.0001725/0.323, allocations: 115.1 kB / 409.5 MB, free: 240 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003925/0.3234, allocations: 123.8 kB / 409.6 MB, free: 116 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3234, allocations: 0 / 409.6 MB, free: 116 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.3235, allocations: 27.97 kB / 409.7 MB, free: 88 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006072/0.3241, allocations: 69.2 kB / 409.7 MB, free: 20 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009836/0.3251, allocations: 451.6 kB / 410.2 MB, free: 15.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000413/0.3255, allocations: 0.724 MB / 410.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.3256, allocations: 15.44 kB / 410.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3256, allocations: 0 / 410.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of Templates: time 0.003959/0.3296, allocations: 1.613 MB / 412.5 MB, free: 13.16 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches