Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001671/0.001671, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0016/0.0016, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.614/1.614, allocations: 230.2 MB / 254.5 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 67.88 kB / 373.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1382, allocations: 53.32 MB / 427.1 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00356/0.1418, allocations: 2.052 MB / 429.2 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001202/0.143, allocations: 0.6115 MB / 429.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.1431, allocations: 4 kB / 429.8 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.1432, allocations: 19.73 kB / 429.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001826/0.1434, allocations: 35.72 kB / 429.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000289/0.1437, allocations: 71.8 kB / 429.9 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002046/0.1439, allocations: 123.5 kB / 430 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001615/0.144, allocations: 45.86 kB / 430.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.394e-05/0.1441, allocations: 51.78 kB / 430.1 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.1442, allocations: 63.7 kB / 430.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.1443, allocations: 8 kB / 430.2 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.182e-05/0.1443, allocations: 15.94 kB / 430.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.979e-05/0.1444, allocations: 31.91 kB / 430.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.46e-05/0.1444, allocations: 63.61 kB / 430.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002457/0.1447, allocations: 151.2 kB / 430.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1447, allocations: 3.938 kB / 430.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1447, allocations: 0 / 430.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1447, allocations: 0 / 430.5 MB, free: 1.121 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.0007254/0.1454, allocations: 466.7 kB / 430.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1455, allocations: 8.031 kB / 430.9 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.791e-05/0.1455, allocations: 24.8 kB / 431 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.1458, allocations: 216.1 kB / 431.2 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.1458, allocations: 8.375 kB / 431.2 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.966e-05/0.1459, allocations: 16.38 kB / 431.2 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005452/0.1464, allocations: 256.4 kB / 431.4 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.1465, allocations: 3.938 kB / 431.4 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.1465, allocations: 8 kB / 431.5 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1465, allocations: 4 kB / 431.5 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002743/0.1468, allocations: 87.88 kB / 431.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000751/0.1475, allocations: 0.5922 MB / 432.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003802/0.1479, allocations: 143.9 kB / 432.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.148, allocations: 62.64 kB / 432.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.1481, allocations: 11.98 kB / 432.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.1481, allocations: 38.5 kB / 432.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.1481, allocations: 0 / 432.4 MB, free: 14.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005531/0.1487, allocations: 193.5 kB / 432.6 MB, free: 14.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.607e-05/0.1488, allocations: 110.8 kB / 432.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.1489, allocations: 158.4 kB / 432.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.1489, allocations: 29.7 kB / 432.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.807e-05/0.149, allocations: 124.8 kB / 433 MB, free: 14.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.73e-05/0.1491, allocations: 23.8 kB / 433 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.204e-05/0.1491, allocations: 37.7 kB / 433.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.1493, allocations: 326.8 kB / 433.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.1494, allocations: 35.91 kB / 433.4 MB, free: 13.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002032/0.1496, allocations: 148.5 kB / 433.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000321/0.1499, allocations: 189.5 kB / 433.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1499, allocations: 0 / 433.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000374/0.1503, allocations: 193.6 kB / 433.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.1503, allocations: 12.06 kB / 433.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.1503, allocations: 4 kB / 433.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.733e-05/0.1503, allocations: 7.938 kB / 433.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.1505, allocations: 43.97 kB / 434 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.1505, allocations: 11.94 kB / 434 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001059/0.1506, allocations: 19.88 kB / 434 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.1506, allocations: 12 kB / 434 MB, free: 13.16 MB / 366.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.0001184/0.1508, allocations: 133.7 kB / 434.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001647/0.1509, allocations: 97.52 kB / 434.3 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.833e-05/0.151, allocations: 16.72 kB / 434.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.151, allocations: 4 kB / 434.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.151, allocations: 0 / 434.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.151, allocations: 0 / 434.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003091/0.1513, allocations: 221.5 kB / 434.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1513, allocations: 0 / 434.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.1515, allocations: 39.97 kB / 434.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1515, allocations: 0 / 434.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.1515, allocations: 4 kB / 434.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.1515, allocations: 4 kB / 434.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1515, allocations: 0 / 434.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005903/0.1521, allocations: 384.7 kB / 434.9 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.1522, allocations: 109.1 kB / 435 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.1522, allocations: 8 kB / 435 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.1524, allocations: 7.984 kB / 435 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.293e-05/0.1524, allocations: 0 / 435 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.398e-05/0.1524, allocations: 8 kB / 435 MB, free: 12.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001004/0.1525, allocations: 120.1 kB / 435.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1525, allocations: 3.938 kB / 435.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003115/0.1528, allocations: 27.94 kB / 435.2 MB, free: 11.89 MB / 366.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.0001416/0.153, allocations: 115.3 kB / 435.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003488/0.1533, allocations: 119.7 kB / 435.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1533, allocations: 0 / 435.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.806e-05/0.1534, allocations: 28.91 kB / 435.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005248/0.154, allocations: 70.06 kB / 435.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008621/0.1548, allocations: 433.4 kB / 435.9 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.1552, allocations: 0.7201 MB / 436.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.306e-05/0.1553, allocations: 13.42 kB / 436.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.28e-05/0.1553, allocations: 19.44 kB / 436.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1553, allocations: 0 / 436.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of Templates: time 0.004668/0.16, allocations: 1.365 MB / 438.1 MB, free: 9.004 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.824871153570712]