Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.001309, allocations: 109.6 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001406/0.001406, allocations: 208.1 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 227.7 MB / 247.7 MB, free: 10.37 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 60.64 kB / 307.9 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.123, allocations: 50.53 MB / 358.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003951/0.127, allocations: 2.011 MB / 360.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.1282, allocations: 0.5376 MB / 361 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.1284, allocations: 7.938 kB / 361 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.1285, allocations: 15.86 kB / 361 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.725e-05/0.1286, allocations: 23.72 kB / 361 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000379/0.129, allocations: 63.25 kB / 361.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001899/0.1292, allocations: 111.6 kB / 361.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.1294, allocations: 65.39 kB / 361.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.1295, allocations: 47.73 kB / 361.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.1296, allocations: 55.77 kB / 361.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.1297, allocations: 12 kB / 361.4 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.569e-05/0.1297, allocations: 8 kB / 361.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.854e-05/0.1298, allocations: 27.91 kB / 361.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.055e-05/0.1299, allocations: 55.67 kB / 361.4 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.1301, allocations: 119.8 kB / 361.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1301, allocations: 3.938 kB / 361.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1301, allocations: 4 kB / 361.6 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.1301, allocations: 0 / 361.6 MB, free: 10.8 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.0008105/0.1309, allocations: 427 kB / 362 MB, free: 10.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/0.131, allocations: 12.03 kB / 362 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.03e-05/0.1311, allocations: 12.84 kB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.1314, allocations: 208 kB / 362.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.749e-05/0.1314, allocations: 8.375 kB / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.785e-05/0.1314, allocations: 12.38 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.132, allocations: 242.9 kB / 362.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.132, allocations: 0 / 362.5 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/0.1321, allocations: 8 kB / 362.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1321, allocations: 7.984 kB / 362.5 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002873/0.1324, allocations: 87.86 kB / 362.6 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007552/0.1331, allocations: 0.5804 MB / 363.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.1334, allocations: 151.9 kB / 363.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.1336, allocations: 74.62 kB / 363.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.1337, allocations: 0 / 363.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.1337, allocations: 38.5 kB / 363.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.122e-06/0.1337, allocations: 0 / 363.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005558/0.1343, allocations: 181.3 kB / 363.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.488e-05/0.1344, allocations: 114.8 kB / 363.7 MB, free: 8.402 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001483/0.1345, allocations: 126.1 kB / 363.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.123e-05/0.1346, allocations: 29.7 kB / 363.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.1347, allocations: 116 kB / 364 MB, free: 8.113 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.676e-05/0.1348, allocations: 31.77 kB / 364 MB, free: 8.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.527e-05/0.1349, allocations: 34.08 kB / 364 MB, free: 8.043 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.135, allocations: 322.8 kB / 364.3 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.1352, allocations: 35.97 kB / 364.4 MB, free: 7.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000189/0.1354, allocations: 131.4 kB / 364.5 MB, free: 7.512 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.1357, allocations: 184.5 kB / 364.7 MB, free: 7.285 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.1357, allocations: 4 kB / 364.7 MB, free: 7.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003762/0.1361, allocations: 193.1 kB / 364.9 MB, free: 7.086 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1361, allocations: 8 kB / 364.9 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1361, allocations: 4 kB / 364.9 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.561e-05/0.1361, allocations: 7.938 kB / 364.9 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.1363, allocations: 39.92 kB / 364.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.1364, allocations: 7.984 kB / 365 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.1365, allocations: 28.28 kB / 365 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.843e-05/0.1365, allocations: 8 kB / 365 MB, free: 6.984 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.0001296/0.1367, allocations: 125.7 kB / 365.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001546/0.1368, allocations: 85.53 kB / 365.2 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.672e-05/0.1369, allocations: 24.64 kB / 365.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.1369, allocations: 0 / 365.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1369, allocations: 4 kB / 365.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1369, allocations: 0 / 365.2 MB, free: 6.734 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003281/0.1372, allocations: 201.6 kB / 365.4 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.1373, allocations: 4 kB / 365.4 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.1374, allocations: 31.98 kB / 365.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1374, allocations: 240 / 365.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.1375, allocations: 15.92 kB / 365.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.1375, allocations: 0 / 365.5 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.1375, allocations: 3.938 kB / 365.5 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005915/0.1381, allocations: 375.4 kB / 365.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.045e-05/0.1382, allocations: 88.98 kB / 365.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.1382, allocations: 7.938 kB / 365.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.1383, allocations: 7.984 kB / 365.9 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.1384, allocations: 7.984 kB / 365.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.1384, allocations: 8 kB / 366 MB, free: 5.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.917e-05/0.1385, allocations: 99.33 kB / 366.1 MB, free: 5.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1385, allocations: 3.938 kB / 366.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003483/0.1389, allocations: 24 kB / 366.1 MB, free: 5.785 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 0.0001299/0.139, allocations: 107.2 kB / 366.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003584/0.1394, allocations: 128.6 kB / 366.3 MB, free: 5.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1394, allocations: 3.938 kB / 366.3 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.971e-05/0.1395, allocations: 23.98 kB / 366.3 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005706/0.1401, allocations: 51.95 kB / 366.4 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008163/0.1409, allocations: 422.8 kB / 366.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.1413, allocations: 0.7084 MB / 367.5 MB, free: 4.273 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.405e-05/0.1413, allocations: 19.42 kB / 367.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1413, allocations: 0 / 367.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of Templates: time 0.003706/0.145, allocations: 1.501 MB / 369 MB, free: 2.766 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches