Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001152, allocations: 99.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001052/0.001052, allocations: 203.1 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.2 MB / 245.9 MB, free: 12.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002792/0.0002792, allocations: 4 kB / 306.6 MB, free: 1.645 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1177, allocations: 51.49 MB / 358.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002221/0.1199, allocations: 1.653 MB / 359.7 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008196/0.1208, allocations: 0.5031 MB / 360.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.644e-05/0.1209, allocations: 15.81 kB / 360.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.201e-05/0.1209, allocations: 7.922 kB / 360.2 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.121, allocations: 27.94 kB / 360.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003006/0.1213, allocations: 47.89 kB / 360.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.1215, allocations: 75.84 kB / 360.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001324/0.1216, allocations: 44.33 kB / 360.4 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.904e-05/0.1217, allocations: 39.84 kB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.439e-05/0.1218, allocations: 39.78 kB / 360.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.1218, allocations: 8 kB / 360.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.884e-05/0.1218, allocations: 4 kB / 360.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.367e-05/0.1218, allocations: 23.84 kB / 360.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.468e-05/0.1219, allocations: 49.64 kB / 360.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.122, allocations: 88.03 kB / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.122, allocations: 0 / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.122, allocations: 0 / 360.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.122, allocations: 0 / 360.7 MB, free: 11.51 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005382/0.1226, allocations: 410.9 kB / 361.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.1226, allocations: 8.031 kB / 361.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.424e-05/0.1227, allocations: 15.81 kB / 361.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000192/0.1229, allocations: 198.9 kB / 361.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.1229, allocations: 15.94 kB / 361.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.1229, allocations: 19.86 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004501/0.1234, allocations: 234.6 kB / 361.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.1234, allocations: 0 / 361.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.1234, allocations: 4 kB / 361.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.1235, allocations: 8 kB / 361.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002464/0.1237, allocations: 91.88 kB / 361.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005969/0.1243, allocations: 0.5921 MB / 362.3 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002612/0.1246, allocations: 156.1 kB / 362.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.314e-05/0.1246, allocations: 4 kB / 362.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.1246, allocations: 34.56 kB / 362.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.1246, allocations: 0 / 362.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004964/0.1251, allocations: 201.6 kB / 362.6 MB, free: 9.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.1252, allocations: 118.9 kB / 362.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.441e-05/0.1253, allocations: 124.4 kB / 362.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.1254, allocations: 25.7 kB / 362.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.986e-05/0.1254, allocations: 112 kB / 363 MB, free: 8.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.1255, allocations: 27.64 kB / 363 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-06/0.1255, allocations: 0 / 363 MB, free: 8.879 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1256, allocations: 326.8 kB / 363.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1257, allocations: 39.97 kB / 363.4 MB, free: 8.512 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.1259, allocations: 140.8 kB / 363.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001301/0.126, allocations: 59.86 kB / 363.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.126, allocations: 0 / 363.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003548/0.1264, allocations: 197.2 kB / 363.8 MB, free: 8.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.1264, allocations: 12.42 kB / 363.8 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1264, allocations: 4 kB / 363.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.1264, allocations: 8 kB / 363.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.1266, allocations: 43.92 kB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.147e-06/0.1266, allocations: 4 kB / 363.9 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000108/0.1268, allocations: 27.83 kB / 363.9 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.175e-05/0.1268, allocations: 8 kB / 363.9 MB, free: 7.965 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.666e-05/0.1269, allocations: 136.4 kB / 364 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.127, allocations: 81.72 kB / 364.1 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.1271, allocations: 20.7 kB / 364.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.1271, allocations: 3.984 kB / 364.1 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1271, allocations: 4 kB / 364.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1271, allocations: 0 / 364.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.1273, allocations: 205.5 kB / 364.3 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1274, allocations: 0 / 364.3 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001655/0.1275, allocations: 39.98 kB / 364.4 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.1275, allocations: 7.953 kB / 364.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.1276, allocations: 7.984 kB / 364.4 MB, free: 7.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.1276, allocations: 4 kB / 364.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1276, allocations: 0 / 364.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005243/0.1281, allocations: 411 kB / 364.8 MB, free: 6.965 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/0.1282, allocations: 96.83 kB / 364.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.952e-05/0.1282, allocations: 0 / 364.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001308/0.1283, allocations: 20.05 kB / 364.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.165e-05/0.1284, allocations: 7.984 kB / 364.9 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.1284, allocations: 4 kB / 364.9 MB, free: 6.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.36e-05/0.1284, allocations: 101.7 kB / 365 MB, free: 6.723 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1285, allocations: 0 / 365 MB, free: 6.723 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.1288, allocations: 24 kB / 365 MB, free: 6.699 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 (14): * Single equations (assignments): 14 * 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.0001053/0.1289, allocations: 99.19 kB / 365.1 MB, free: 6.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003081/0.1292, allocations: 127.8 kB / 365.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1292, allocations: 0.875 kB / 365.3 MB, free: 6.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.717e-05/0.1293, allocations: 35.97 kB / 365.3 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003623/0.1297, allocations: 62.84 kB / 365.4 MB, free: 6.371 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006922/0.1304, allocations: 457.8 kB / 365.8 MB, free: 5.891 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002494/0.1306, allocations: 0.7165 MB / 366.5 MB, free: 5.145 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.65e-05/0.1307, allocations: 16.59 kB / 366.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.1307, allocations: 15.44 kB / 366.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1307, allocations: 0 / 366.6 MB, free: 5.113 MB / 302.1 MB Notification: Performance of Templates: time 0.003163/0.1339, allocations: 1.002 MB / 367.6 MB, free: 4.148 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches