Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001124, allocations: 114.9 kB / 17.69 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 222.9 MB / 242.3 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001012, allocations: 50.73 kB / 302.1 MB, free: 5.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1222, allocations: 49.45 MB / 351.5 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003722/0.1259, allocations: 1.996 MB / 353.5 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009242/0.1269, allocations: 0.4986 MB / 354 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.127, allocations: 0 / 354 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001417/0.1272, allocations: 23.8 kB / 354 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.769e-05/0.1272, allocations: 15.8 kB / 354 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000413/0.1277, allocations: 71.73 kB / 354.1 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002077/0.1279, allocations: 115.6 kB / 354.2 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002197/0.1281, allocations: 57.27 kB / 354.3 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.389e-05/0.1282, allocations: 55.72 kB / 354.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.212e-05/0.1283, allocations: 51.77 kB / 354.4 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.927e-05/0.1283, allocations: 12 kB / 354.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.066e-05/0.1284, allocations: 8 kB / 354.4 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.652e-05/0.1284, allocations: 23.92 kB / 354.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.265e-05/0.1285, allocations: 63.66 kB / 354.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001888/0.1287, allocations: 127.5 kB / 354.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1287, allocations: 0 / 354.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1287, allocations: 4 kB / 354.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1287, allocations: 0 / 354.6 MB, free: 0.625 MB / 286.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.0006384/0.1294, allocations: 427 kB / 355 MB, free: 164 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1294, allocations: 8.031 kB / 355 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.1295, allocations: 16.83 kB / 355 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002972/0.1298, allocations: 208.1 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.1298, allocations: 8.375 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.071e-05/0.1298, allocations: 20.28 kB / 355.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004676/0.1303, allocations: 243 kB / 355.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.1303, allocations: 8 kB / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.1303, allocations: 0 / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.1304, allocations: 4 kB / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002382/0.1306, allocations: 87.86 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006497/0.1313, allocations: 0.5882 MB / 356.2 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002544/0.1315, allocations: 147.9 kB / 356.3 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001538/0.1317, allocations: 78.62 kB / 356.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.1317, allocations: 0 / 356.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.925e-05/0.1318, allocations: 38.56 kB / 356.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.062e-06/0.1318, allocations: 0 / 356.5 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004962/0.1323, allocations: 181.5 kB / 356.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.418e-05/0.1324, allocations: 118.8 kB / 356.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000133/0.1325, allocations: 137.6 kB / 356.9 MB, free: 14.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.1325, allocations: 25.7 kB / 356.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.545e-05/0.1326, allocations: 108 kB / 357 MB, free: 13.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.1327, allocations: 27.64 kB / 357 MB, free: 13.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.1327, allocations: 37.83 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1329, allocations: 326.8 kB / 357.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.133, allocations: 31.98 kB / 357.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.1332, allocations: 135.8 kB / 357.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.1335, allocations: 180.6 kB / 357.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.1335, allocations: 0 / 357.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000344/0.1338, allocations: 193.3 kB / 357.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.1339, allocations: 8 kB / 357.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.1339, allocations: 4.234 kB / 357.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.1339, allocations: 7.938 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/0.1341, allocations: 39.98 kB / 358 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.1341, allocations: 11.92 kB / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.341e-05/0.1342, allocations: 11.94 kB / 358 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.1342, allocations: 16.23 kB / 358 MB, free: 12.82 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.1343, allocations: 133.7 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.1345, allocations: 89.38 kB / 358.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.1345, allocations: 24.64 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1345, allocations: 0 / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1345, allocations: 0 / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.1346, allocations: 8 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002542/0.1348, allocations: 205.6 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1348, allocations: 0 / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.135, allocations: 31.98 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.135, allocations: 4 kB / 358.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.525e-05/0.135, allocations: 7.922 kB / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.416e-06/0.135, allocations: 4 kB / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.135, allocations: 0 / 358.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004949/0.1355, allocations: 371.4 kB / 358.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.218e-05/0.1356, allocations: 93.05 kB / 359 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.1356, allocations: 7.875 kB / 359 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.1358, allocations: 11.98 kB / 359 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.582e-05/0.1358, allocations: 4 kB / 359 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.719e-06/0.1358, allocations: 7.984 kB / 359 MB, free: 11.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.106e-05/0.1359, allocations: 99.27 kB / 359.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1359, allocations: 0 / 359.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003121/0.1362, allocations: 28.06 kB / 359.1 MB, free: 11.6 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.642e-05/0.1363, allocations: 103.2 kB / 359.2 MB, free: 11.49 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003034/0.1366, allocations: 108.6 kB / 359.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1366, allocations: 3.938 kB / 359.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.967e-05/0.1367, allocations: 36.03 kB / 359.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004771/0.1372, allocations: 47.95 kB / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006782/0.1379, allocations: 393.9 kB / 359.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.1382, allocations: 0.7084 MB / 360.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.931e-05/0.1383, allocations: 8.641 kB / 360.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.278e-05/0.1383, allocations: 15.44 kB / 360.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1383, allocations: 4 kB / 360.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of Templates: time 0.003861/0.1422, allocations: 1.161 MB / 361.7 MB, free: 9 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches