Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,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.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,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.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 108.1 kB / 17.06 MB, free: 6.137 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.001469/0.001469, allocations: 187.1 kB / 18 MB, free: 5.219 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.484/1.484, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001143/0.001143, allocations: 47.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4029/0.404, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.005802/0.4099, allocations: 2.002 MB / 402.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.4116, allocations: 0.5259 MB / 403.2 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.4118, allocations: 8 kB / 403.2 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002462/0.412, allocations: 15.8 kB / 403.3 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002191/0.4123, allocations: 31.72 kB / 403.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.4128, allocations: 63.8 kB / 403.3 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002425/0.413, allocations: 119.6 kB / 403.5 MB, free: 6.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002404/0.4133, allocations: 49.44 kB / 403.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.4134, allocations: 63.7 kB / 403.6 MB, free: 6 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001237/0.4136, allocations: 51.77 kB / 403.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.448e-05/0.4136, allocations: 12 kB / 403.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.079e-05/0.4136, allocations: 12 kB / 403.6 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.986e-05/0.4137, allocations: 23.92 kB / 403.7 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.4138, allocations: 59.66 kB / 403.7 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002864/0.4141, allocations: 123.4 kB / 403.9 MB, free: 5.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.4142, allocations: 8 kB / 403.9 MB, free: 5.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.929e-06/0.4142, allocations: 0 / 403.9 MB, free: 5.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.4142, allocations: 3.938 kB / 403.9 MB, free: 5.715 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009633/0.4152, allocations: 428.3 kB / 404.3 MB, free: 5.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.4152, allocations: 11.89 kB / 404.3 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.661e-05/0.4153, allocations: 16.75 kB / 404.3 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000559/0.4159, allocations: 212.1 kB / 404.5 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.4159, allocations: 16.31 kB / 404.5 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.424e-05/0.416, allocations: 16.36 kB / 404.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009651/0.417, allocations: 250.9 kB / 404.8 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.417, allocations: 3.906 kB / 404.8 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.755e-05/0.417, allocations: 4 kB / 404.8 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.4171, allocations: 4 kB / 404.8 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004442/0.4175, allocations: 91.86 kB / 404.9 MB, free: 4.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.4185, allocations: 0.5882 MB / 405.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005583/0.4191, allocations: 147.7 kB / 405.6 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002834/0.4194, allocations: 78.64 kB / 405.7 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.491e-05/0.4195, allocations: 12.11 kB / 405.7 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.4195, allocations: 34.56 kB / 405.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 2.445e-06/0.4196, allocations: 0 / 405.7 MB, free: 3.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=15): time 0.00102/0.4206, allocations: 189.4 kB / 405.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/0.4208, allocations: 110.8 kB / 406 MB, free: 3.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001767/0.421, allocations: 129.1 kB / 406.2 MB, free: 3.145 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/0.421, allocations: 29.7 kB / 406.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.719e-05/0.4211, allocations: 111.9 kB / 406.3 MB, free: 2.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.4212, allocations: 27.64 kB / 406.3 MB, free: 2.969 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.307e-05/0.4213, allocations: 37.7 kB / 406.4 MB, free: 2.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002551/0.4216, allocations: 326.9 kB / 406.7 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.4218, allocations: 35.97 kB / 406.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002951/0.4221, allocations: 135 kB / 406.9 MB, free: 2.383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005348/0.4227, allocations: 193.5 kB / 407 MB, free: 2.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.4227, allocations: 0 / 407 MB, free: 2.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000673/0.4234, allocations: 201.2 kB / 407.2 MB, free: 1.941 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.4234, allocations: 4 kB / 407.2 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.4235, allocations: 4 kB / 407.2 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.521e-05/0.4235, allocations: 8 kB / 407.3 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002978/0.4238, allocations: 47.84 kB / 407.3 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.4238, allocations: 4 kB / 407.3 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.4241, allocations: 20.22 kB / 407.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.4241, allocations: 19.98 kB / 407.3 MB, free: 1.836 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.000175/0.4243, allocations: 137.7 kB / 407.5 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002767/0.4246, allocations: 90.08 kB / 407.6 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.593e-05/0.4247, allocations: 16.72 kB / 407.6 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.327e-06/0.4247, allocations: 3.984 kB / 407.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.4247, allocations: 4 kB / 407.6 MB, free: 1.566 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.4248, allocations: 3.984 kB / 407.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004557/0.4252, allocations: 213.4 kB / 407.8 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4253, allocations: 4 kB / 407.8 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003132/0.4256, allocations: 31.98 kB / 407.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.4256, allocations: 0 / 407.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.124e-05/0.4256, allocations: 8 kB / 407.8 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.4257, allocations: 3.938 kB / 407.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.4257, allocations: 4 kB / 407.9 MB, free: 1.254 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000954/0.4266, allocations: 381.8 kB / 408.2 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.073e-05/0.4267, allocations: 89.05 kB / 408.3 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.954e-05/0.4268, allocations: 4 kB / 408.3 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002712/0.4271, allocations: 11.98 kB / 408.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.91e-05/0.4271, allocations: 4 kB / 408.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.594e-05/0.4272, allocations: 3.984 kB / 408.3 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001157/0.4273, allocations: 107.3 kB / 408.4 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.32e-07/0.4273, allocations: 3.938 kB / 408.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006306/0.428, allocations: 27.94 kB / 408.5 MB, free: 0.5977 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 (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.0001641/0.4281, allocations: 95.25 kB / 408.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000585/0.4287, allocations: 124.6 kB / 408.7 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.4288, allocations: 0 / 408.7 MB, free: 384 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001868/0.429, allocations: 27.97 kB / 408.7 MB, free: 356 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008664/0.4299, allocations: 63.89 kB / 408.8 MB, free: 292 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001188/0.4311, allocations: 401.3 kB / 409.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.4315, allocations: 0.7123 MB / 409.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.814e-05/0.4316, allocations: 13.09 kB / 409.9 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.871e-05/0.4317, allocations: 15.42 kB / 409.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of SimCode: time 1.929e-05/0.4317, allocations: 0 / 409.9 MB, free: 15.1 MB / 334.1 MB Notification: Performance of Templates: time 0.007285/0.439, allocations: 1.224 MB / 411.1 MB, free: 13.88 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches