Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001418/0.001418, allocations: 119.4 kB / 17.79 MB, free: 5.285 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.00155/0.00155, allocations: 200.3 kB / 20.74 MB, free: 2.344 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.631/1.631, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 47.92 kB / 373.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1146, allocations: 53.33 MB / 426.8 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003631/0.1182, allocations: 2.055 MB / 428.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.1195, allocations: 0.6154 MB / 429.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.1196, allocations: 0 / 429.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00014/0.1197, allocations: 23.8 kB / 429.5 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.1199, allocations: 31.7 kB / 429.5 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.1202, allocations: 75.8 kB / 429.6 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002154/0.1204, allocations: 127.6 kB / 429.7 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.1206, allocations: 37.86 kB / 429.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.742e-05/0.1207, allocations: 59.72 kB / 429.8 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.979e-05/0.1208, allocations: 59.7 kB / 429.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.731e-05/0.1208, allocations: 8 kB / 429.9 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.451e-05/0.1208, allocations: 12 kB / 429.9 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.056e-05/0.1209, allocations: 31.91 kB / 429.9 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.024e-05/0.121, allocations: 67.61 kB / 430 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.1212, allocations: 147.2 kB / 430.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1212, allocations: 7.938 kB / 430.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.298e-05/0.1212, allocations: 0 / 430.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.633e-06/0.1212, allocations: 0 / 430.1 MB, free: 1.031 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007606/0.122, allocations: 462.7 kB / 430.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.971e-05/0.122, allocations: 8.031 kB / 430.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.39e-05/0.1221, allocations: 20.8 kB / 430.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.1224, allocations: 220.1 kB / 430.8 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.73e-05/0.1224, allocations: 8.375 kB / 430.8 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.1225, allocations: 12.38 kB / 430.8 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2331/0.3556, allocations: 256.8 kB / 431.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.949e-05/0.3556, allocations: 0.5312 kB / 431.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.3557, allocations: 5.312 kB / 431.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.878e-06/0.3557, allocations: 3.469 kB / 431.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003558/0.356, allocations: 86.78 kB / 431.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006253/0.3566, allocations: 0.5956 MB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003463/0.357, allocations: 139.5 kB / 431.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.3572, allocations: 77.09 kB / 432 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.275e-05/0.3572, allocations: 4.344 kB / 432 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.3573, allocations: 43.09 kB / 432 MB, free: 10.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.224e-06/0.3573, allocations: 0 / 432 MB, free: 10.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000569/0.3578, allocations: 186.5 kB / 432.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.3579, allocations: 113.9 kB / 432.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.358, allocations: 155.6 kB / 432.5 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.358, allocations: 26.7 kB / 432.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.876e-05/0.3581, allocations: 121.4 kB / 432.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.441e-05/0.3581, allocations: 30.23 kB / 432.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.319e-05/0.3581, allocations: 37.66 kB / 432.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.92e-05/0.3582, allocations: 326.3 kB / 433 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.3583, allocations: 36.22 kB / 433 MB, free: 10.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.3585, allocations: 136.5 kB / 433.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.3587, allocations: 191.9 kB / 433.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3587, allocations: 3.344 kB / 433.4 MB, free: 9.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003598/0.3591, allocations: 195.8 kB / 433.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.3591, allocations: 6.938 kB / 433.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.3591, allocations: 3.625 kB / 433.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.074e-05/0.3591, allocations: 5.156 kB / 433.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.3593, allocations: 50.34 kB / 433.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.3593, allocations: 7.188 kB / 433.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.3594, allocations: 27.23 kB / 433.7 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.3594, allocations: 7.438 kB / 433.7 MB, free: 9.723 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.216e-05/0.3595, allocations: 135.1 kB / 433.8 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001367/0.3596, allocations: 92.11 kB / 433.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.639e-05/0.3597, allocations: 22.36 kB / 433.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.3597, allocations: 2.188 kB / 433.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.3597, allocations: 4.953 kB / 433.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.3597, allocations: 4.703 kB / 433.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002169/0.3599, allocations: 214.3 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3599, allocations: 0 / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.3601, allocations: 38.11 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.3601, allocations: 3.125 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.3601, allocations: 3.719 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3601, allocations: 5.672 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3601, allocations: 1.938 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004875/0.3606, allocations: 385.8 kB / 434.6 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.492e-05/0.3607, allocations: 108.4 kB / 434.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.229e-05/0.3607, allocations: 1.094 kB / 434.7 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.3609, allocations: 15.69 kB / 434.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.3609, allocations: 2.188 kB / 434.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/0.3609, allocations: 8.094 kB / 434.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.875e-05/0.361, allocations: 123.4 kB / 434.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.361, allocations: 2.844 kB / 434.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.3613, allocations: 28.48 kB / 434.8 MB, free: 8.949 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 0.0001015/0.3614, allocations: 113.1 kB / 435 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000336/0.3617, allocations: 121.3 kB / 435.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3617, allocations: 480 / 435.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.906e-05/0.3618, allocations: 26.55 kB / 435.1 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005164/0.3624, allocations: 74.12 kB / 435.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006937/0.3631, allocations: 415.3 kB / 435.6 MB, free: 8.555 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001679/0.3632, allocations: 0.726 MB / 436.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.879e-05/0.3633, allocations: 13.02 kB / 436.3 MB, free: 7.852 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.09e-05/0.3633, allocations: 13.94 kB / 436.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3633, allocations: 1.375 kB / 436.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of Templates: time 0.005193/0.3685, allocations: 1.369 MB / 437.7 MB, free: 7.773 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.957584973424673]