Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001199/0.001199, allocations: 97.27 kB / 16.99 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00145/0.00145, allocations: 202.9 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.2 MB / 245.9 MB, free: 12.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.000264, allocations: 4 kB / 306.6 MB, free: 1.648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1199, allocations: 51.48 MB / 358.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.002477/0.1225, allocations: 1.657 MB / 359.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009616/0.1234, allocations: 0.538 MB / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.248e-05/0.1236, allocations: 4 kB / 360.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.201e-05/0.1236, allocations: 11.86 kB / 360.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.1238, allocations: 27.94 kB / 360.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.1241, allocations: 47.89 kB / 360.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.1242, allocations: 79.78 kB / 360.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.1244, allocations: 61 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.551e-05/0.1245, allocations: 35.86 kB / 360.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.878e-05/0.1245, allocations: 43.77 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.208e-05/0.1246, allocations: 4 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.1246, allocations: 8 kB / 360.6 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.297e-05/0.1246, allocations: 15.92 kB / 360.6 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.513e-05/0.1247, allocations: 45.64 kB / 360.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001192/0.1248, allocations: 88.03 kB / 360.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.405e-06/0.1249, allocations: 0 / 360.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1249, allocations: 0 / 360.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.1249, allocations: 4 kB / 360.7 MB, free: 11.48 MB / 302.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.0006828/0.1256, allocations: 407 kB / 361.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.1256, allocations: 11.97 kB / 361.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.125e-05/0.1257, allocations: 23.8 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002439/0.1259, allocations: 194.8 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.1259, allocations: 12 kB / 361.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.496e-05/0.126, allocations: 19.89 kB / 361.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005353/0.1265, allocations: 254.3 kB / 361.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.1266, allocations: 0 / 361.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.1266, allocations: 4 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.226e-06/0.1266, allocations: 4 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002689/0.1269, allocations: 99.88 kB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007596/0.1276, allocations: 0.5843 MB / 362.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003588/0.128, allocations: 143.9 kB / 362.5 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.1281, allocations: 16.02 kB / 362.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.619e-05/0.1281, allocations: 38.5 kB / 362.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.1281, allocations: 0 / 362.5 MB, free: 9.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005749/0.1287, allocations: 213.7 kB / 362.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.418e-05/0.1288, allocations: 110.8 kB / 362.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.1289, allocations: 132.5 kB / 362.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.1289, allocations: 25.7 kB / 363 MB, free: 8.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.861e-05/0.129, allocations: 108 kB / 363.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.031e-05/0.129, allocations: 31.62 kB / 363.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.477e-05/0.1291, allocations: 4 kB / 363.1 MB, free: 8.812 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.1293, allocations: 326.9 kB / 363.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.1294, allocations: 40.34 kB / 363.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.1296, allocations: 141.4 kB / 363.6 MB, free: 8.262 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001377/0.1297, allocations: 63.97 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1297, allocations: 0 / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003651/0.1301, allocations: 209.3 kB / 363.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.1301, allocations: 8 kB / 363.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.1302, allocations: 4 kB / 363.9 MB, free: 7.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.118e-05/0.1302, allocations: 11.94 kB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.1303, allocations: 47.92 kB / 363.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.1304, allocations: 4 kB / 364 MB, free: 7.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.1305, allocations: 24.02 kB / 364 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.42e-05/0.1305, allocations: 16 kB / 364 MB, free: 7.875 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.1306, allocations: 130.2 kB / 364.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.1308, allocations: 85.53 kB / 364.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.1309, allocations: 20.7 kB / 364.2 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1309, allocations: 7.953 kB / 364.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1309, allocations: 0 / 364.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1309, allocations: 0 / 364.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002843/0.1312, allocations: 197.6 kB / 364.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1312, allocations: 8 kB / 364.4 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001981/0.1314, allocations: 39.97 kB / 364.5 MB, free: 7.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.1314, allocations: 4 kB / 364.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.1315, allocations: 3.938 kB / 364.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1315, allocations: 0 / 364.5 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.1315, allocations: 7.953 kB / 364.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006084/0.1321, allocations: 422.9 kB / 364.9 MB, free: 6.867 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.845e-05/0.1321, allocations: 88.95 kB / 365 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.1322, allocations: 7.953 kB / 365 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.1323, allocations: 15.98 kB / 365 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.238e-05/0.1324, allocations: 8 kB / 365 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.513e-06/0.1324, allocations: 3.938 kB / 365 MB, free: 6.727 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.767e-05/0.1325, allocations: 101.6 kB / 365.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1325, allocations: 4 kB / 365.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003095/0.1328, allocations: 28.06 kB / 365.2 MB, free: 6.598 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001216/0.1329, allocations: 103.2 kB / 365.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003211/0.1332, allocations: 132.6 kB / 365.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1332, allocations: 0 / 365.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.553e-05/0.1333, allocations: 31.97 kB / 365.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.1337, allocations: 51.86 kB / 365.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008646/0.1346, allocations: 481.8 kB / 365.9 MB, free: 5.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004464/0.135, allocations: 0.7205 MB / 366.7 MB, free: 5.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.288e-05/0.1351, allocations: 9.094 kB / 366.7 MB, free: 5.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.911e-05/0.1352, allocations: 15.44 kB / 366.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1352, allocations: 0 / 366.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of Templates: time 0.004113/0.1393, allocations: 1.023 MB / 367.7 MB, free: 3.984 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches