Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001702/0.001702, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001895/0.001895, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.516/1.516, allocations: 230.4 MB / 251.1 MB, free: 8.438 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002805/0.002805, allocations: 75.81 kB / 368.9 MB, free: 6.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3052, allocations: 53.31 MB / 422.2 MB, free: 7.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003608/0.3088, allocations: 2.026 MB / 424.3 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009903/0.3098, allocations: 0.5415 MB / 424.8 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.3099, allocations: 7.938 kB / 424.8 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.31, allocations: 15.8 kB / 424.8 MB, free: 5.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.967e-05/0.3101, allocations: 27.78 kB / 424.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003235/0.3104, allocations: 59.86 kB / 424.9 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001964/0.3106, allocations: 115.6 kB / 425 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.3108, allocations: 41.42 kB / 425.1 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.789e-05/0.3109, allocations: 55.72 kB / 425.1 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.538e-05/0.311, allocations: 55.77 kB / 425.2 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.506e-05/0.3111, allocations: 12 kB / 425.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.079e-05/0.3111, allocations: 8 kB / 425.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.724e-05/0.3111, allocations: 23.92 kB / 425.2 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.357e-05/0.3112, allocations: 59.66 kB / 425.3 MB, free: 4.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.3114, allocations: 127 kB / 425.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3114, allocations: 0 / 425.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3114, allocations: 0 / 425.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3114, allocations: 0 / 425.4 MB, free: 4.656 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.0006578/0.3121, allocations: 426.9 kB / 425.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.3121, allocations: 8.031 kB / 425.8 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.686e-05/0.3122, allocations: 16.84 kB / 425.8 MB, free: 4.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.3124, allocations: 208.1 kB / 426 MB, free: 3.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.634e-05/0.3125, allocations: 12.38 kB / 426.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.565e-05/0.3125, allocations: 16.33 kB / 426.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005033/0.313, allocations: 244.8 kB / 426.3 MB, free: 3.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.313, allocations: 4 kB / 426.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.313, allocations: 11.88 kB / 426.3 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.313, allocations: 7.938 kB / 426.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002451/0.3133, allocations: 75.94 kB / 426.4 MB, free: 3.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006771/0.314, allocations: 0.5999 MB / 427 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.3142, allocations: 139.9 kB / 427.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.3144, allocations: 70.58 kB / 427.2 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.3144, allocations: 4 kB / 427.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.3144, allocations: 34.56 kB / 427.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.3144, allocations: 4 kB / 427.3 MB, free: 2.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005311/0.315, allocations: 185.4 kB / 427.4 MB, free: 2.387 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/0.3151, allocations: 114.8 kB / 427.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000119/0.3152, allocations: 126.1 kB / 427.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.977e-05/0.3152, allocations: 29.7 kB / 427.7 MB, free: 2.078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.186e-05/0.3153, allocations: 116 kB / 427.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.808e-05/0.3153, allocations: 27.8 kB / 427.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.513e-05/0.3154, allocations: 37.7 kB / 427.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001387/0.3155, allocations: 318.8 kB / 428.2 MB, free: 1.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.3156, allocations: 35.97 kB / 428.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001807/0.3158, allocations: 128.8 kB / 428.4 MB, free: 1.363 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.3161, allocations: 184.6 kB / 428.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3161, allocations: 0 / 428.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003594/0.3165, allocations: 189.2 kB / 428.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.3165, allocations: 4 kB / 428.7 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.3165, allocations: 4 kB / 428.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.3165, allocations: 7.938 kB / 428.7 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.3167, allocations: 47.91 kB / 428.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.135e-05/0.3167, allocations: 8.375 kB / 428.8 MB, free: 0.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001017/0.3168, allocations: 28.27 kB / 428.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.3168, allocations: 11.98 kB / 428.8 MB, free: 0.8359 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 0.0001103/0.3169, allocations: 121.8 kB / 428.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.317, allocations: 89.52 kB / 429 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.368e-05/0.3171, allocations: 16.66 kB / 429.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3171, allocations: 4 kB / 429.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3171, allocations: 0 / 429.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.3171, allocations: 0 / 429.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002872/0.3174, allocations: 213.5 kB / 429.3 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3174, allocations: 7.938 kB / 429.3 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001674/0.3176, allocations: 35.91 kB / 429.3 MB, free: 292 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3176, allocations: 4 kB / 429.3 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.3176, allocations: 7.938 kB / 429.3 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3176, allocations: 0 / 429.3 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.3176, allocations: 7.984 kB / 429.3 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005341/0.3181, allocations: 370.2 kB / 429.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.748e-05/0.3182, allocations: 93.03 kB / 429.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.3182, allocations: 11.94 kB / 429.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.3183, allocations: 4 kB / 429.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.383e-05/0.3184, allocations: 3.984 kB / 429.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.815e-06/0.3184, allocations: 8 kB / 429.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.605e-05/0.3184, allocations: 103.3 kB / 429.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3184, allocations: 0 / 429.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003217/0.3188, allocations: 24 kB / 429.9 MB, free: 15.62 MB / 350.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.874e-05/0.3189, allocations: 103.2 kB / 430 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003381/0.3192, allocations: 119.4 kB / 430.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3192, allocations: 4 kB / 430.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.886e-05/0.3193, allocations: 23.92 kB / 430.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.3198, allocations: 52.44 kB / 430.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006931/0.3205, allocations: 381.8 kB / 430.6 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.3208, allocations: 0.7161 MB / 431.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.179e-05/0.3208, allocations: 12.61 kB / 431.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.917e-05/0.3209, allocations: 23.38 kB / 431.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.3209, allocations: 0 / 431.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of Templates: time 0.004036/0.3249, allocations: 1.226 MB / 432.6 MB, free: 12.96 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches