Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001626/0.001626, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.606/1.606, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001683/0.001683, allocations: 55.91 kB / 373.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1152, allocations: 53.33 MB / 426.8 MB, free: 4.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003717/0.119, allocations: 2.025 MB / 428.8 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00119/0.1201, allocations: 0.5687 MB / 429.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.1203, allocations: 0 / 429.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.1204, allocations: 23.8 kB / 429.4 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.1205, allocations: 27.72 kB / 429.4 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002584/0.1208, allocations: 55.88 kB / 429.5 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001898/0.121, allocations: 123.6 kB / 429.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.1211, allocations: 41.42 kB / 429.6 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.351e-05/0.1212, allocations: 51.78 kB / 429.7 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.649e-05/0.1213, allocations: 59.69 kB / 429.8 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.1214, allocations: 12 kB / 429.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.002e-05/0.1214, allocations: 12 kB / 429.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.45e-05/0.1214, allocations: 23.92 kB / 429.8 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.082e-05/0.1215, allocations: 67.61 kB / 429.9 MB, free: 1.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002467/0.1217, allocations: 123.4 kB / 430 MB, free: 1.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1217, allocations: 0 / 430 MB, free: 1.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1217, allocations: 0 / 430 MB, free: 1.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.1218, allocations: 4 kB / 430 MB, free: 1.086 MB / 350.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.0007012/0.1225, allocations: 434.9 kB / 430.4 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1225, allocations: 8.031 kB / 430.4 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.1225, allocations: 16.84 kB / 430.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002663/0.1228, allocations: 208.1 kB / 430.6 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.1228, allocations: 16.31 kB / 430.7 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.779e-05/0.1229, allocations: 12.38 kB / 430.7 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.1234, allocations: 263 kB / 430.9 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.1234, allocations: 0 / 430.9 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.1234, allocations: 0 / 430.9 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.1235, allocations: 4 kB / 430.9 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.213/0.3364, allocations: 87.69 kB / 431 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006704/0.3371, allocations: 0.5937 MB / 431.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003886/0.3375, allocations: 143.2 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.3376, allocations: 70.31 kB / 431.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.3377, allocations: 7.094 kB / 431.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.3377, allocations: 38.89 kB / 431.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.094e-06/0.3377, allocations: 1 kB / 431.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000552/0.3382, allocations: 182.1 kB / 432 MB, free: 10.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.3383, allocations: 115.3 kB / 432.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.3384, allocations: 132.2 kB / 432.3 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.3384, allocations: 30.23 kB / 432.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.211e-05/0.3385, allocations: 111.3 kB / 432.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.332e-05/0.3385, allocations: 31.77 kB / 432.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.353e-05/0.3385, allocations: 34.02 kB / 432.5 MB, free: 10.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.998e-05/0.3386, allocations: 327.3 kB / 432.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001203/0.3387, allocations: 35.7 kB / 432.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.3389, allocations: 136.9 kB / 433 MB, free: 9.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.3391, allocations: 188 kB / 433.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3391, allocations: 1.062 kB / 433.2 MB, free: 9.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003576/0.3395, allocations: 199.2 kB / 433.4 MB, free: 9.801 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3395, allocations: 10.38 kB / 433.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3395, allocations: 4 kB / 433.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.3395, allocations: 4.562 kB / 433.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001562/0.3397, allocations: 43.86 kB / 433.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.3397, allocations: 6.438 kB / 433.4 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001061/0.3398, allocations: 25.88 kB / 433.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.3398, allocations: 8.844 kB / 433.5 MB, free: 9.793 MB / 350.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 8.361e-05/0.3399, allocations: 133.3 kB / 433.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.34, allocations: 98.27 kB / 433.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.833e-05/0.3401, allocations: 19.78 kB / 433.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.3401, allocations: 0 / 433.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3401, allocations: 8.047 kB / 433.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3401, allocations: 3.5 kB / 433.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002183/0.3403, allocations: 197.3 kB / 433.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3404, allocations: 0 / 433.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001716/0.3405, allocations: 41 kB / 433.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.3405, allocations: 3.938 kB / 433.9 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.378e-05/0.3405, allocations: 2.375 kB / 434 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3405, allocations: 3.562 kB / 434 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3405, allocations: 5.531 kB / 434 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004818/0.341, allocations: 388.4 kB / 434.3 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.835e-05/0.3411, allocations: 91.81 kB / 434.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.151e-05/0.3411, allocations: 2.188 kB / 434.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.3412, allocations: 9.625 kB / 434.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.316e-05/0.3413, allocations: 8.859 kB / 434.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.3413, allocations: 9.75 kB / 434.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.012e-05/0.3413, allocations: 96.66 kB / 434.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3413, allocations: 0 / 434.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003249/0.3416, allocations: 25.52 kB / 434.6 MB, free: 9.031 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 (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 8.454e-05/0.3417, allocations: 108.2 kB / 434.7 MB, free: 8.945 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003429/0.3421, allocations: 115.6 kB / 434.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3421, allocations: 1.094 kB / 434.8 MB, free: 8.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.665e-05/0.3422, allocations: 29.14 kB / 434.8 MB, free: 8.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/0.3426, allocations: 56.5 kB / 434.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006259/0.3433, allocations: 400.2 kB / 435.3 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.3434, allocations: 0.719 MB / 436 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.117e-05/0.3434, allocations: 7.516 kB / 436 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.776e-05/0.3435, allocations: 18.12 kB / 436 MB, free: 7.953 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3435, allocations: 0 / 436 MB, free: 7.953 MB / 350.1 MB Notification: Performance of Templates: time 0.004367/0.3479, allocations: 1.242 MB / 437.3 MB, free: 7.863 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.793335445225239]