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.001224/0.001224, allocations: 107.5 kB / 16.92 MB, free: 6.332 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.002352/0.002352, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.44/1.44, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 47.11 kB / 300.6 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1198, allocations: 49.45 MB / 350 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00426/0.1241, allocations: 1.985 MB / 352 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.1253, allocations: 0.5103 MB / 352.5 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001842/0.1255, allocations: 4 kB / 352.5 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.1257, allocations: 15.8 kB / 352.6 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001191/0.1258, allocations: 27.78 kB / 352.6 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004011/0.1262, allocations: 57.48 kB / 352.6 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002147/0.1265, allocations: 115.6 kB / 352.8 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000175/0.1266, allocations: 53.28 kB / 352.8 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001158/0.1268, allocations: 55.78 kB / 352.9 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001024/0.1269, allocations: 55.7 kB / 352.9 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.1269, allocations: 12 kB / 352.9 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.573e-05/0.1269, allocations: 8 kB / 352.9 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.553e-05/0.127, allocations: 23.92 kB / 353 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.118e-05/0.1271, allocations: 59.67 kB / 353 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002328/0.1273, allocations: 123.8 kB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1273, allocations: 0 / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.1273, allocations: 4 kB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.1274, allocations: 0 / 353.1 MB, free: 1.316 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.0007399/0.1281, allocations: 431 kB / 353.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1281, allocations: 8.031 kB / 353.6 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.64e-05/0.1282, allocations: 16.78 kB / 353.6 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.1285, allocations: 208.1 kB / 353.8 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.1285, allocations: 8.375 kB / 353.8 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.647e-05/0.1286, allocations: 16.28 kB / 353.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005484/0.1291, allocations: 246.8 kB / 354.1 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.749e-05/0.1291, allocations: 0 / 354.1 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.1292, allocations: 7.984 kB / 354.1 MB, free: 296 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.1292, allocations: 4 kB / 354.1 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.1295, allocations: 87.88 kB / 354.1 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008037/0.1303, allocations: 0.5959 MB / 354.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002862/0.1306, allocations: 139.9 kB / 354.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001738/0.1308, allocations: 74.64 kB / 355 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.1308, allocations: 15.92 kB / 355 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.958e-05/0.1308, allocations: 30.56 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.1308, allocations: 3.938 kB / 355 MB, free: 15.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.000562/0.1314, allocations: 185.3 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.1315, allocations: 106.8 kB / 355.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.1316, allocations: 137.6 kB / 355.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.1317, allocations: 29.7 kB / 355.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.602e-05/0.1317, allocations: 108 kB / 355.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.385e-05/0.1318, allocations: 31.64 kB / 355.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.36e-05/0.1319, allocations: 29.72 kB / 355.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001376/0.132, allocations: 322.9 kB / 355.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001206/0.1321, allocations: 35.97 kB / 356 MB, free: 14.2 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.1323, allocations: 135.7 kB / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003038/0.1326, allocations: 180.7 kB / 356.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.1326, allocations: 4 kB / 356.3 MB, free: 13.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000395/0.133, allocations: 193.4 kB / 356.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1331, allocations: 4 kB / 356.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.1331, allocations: 4 kB / 356.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.1331, allocations: 7.938 kB / 356.5 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.1333, allocations: 43.91 kB / 356.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.1333, allocations: 15.92 kB / 356.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001036/0.1334, allocations: 19.92 kB / 356.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.1335, allocations: 8 kB / 356.6 MB, free: 13.5 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.0001268/0.1336, allocations: 137.8 kB / 356.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.1337, allocations: 85.44 kB / 356.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.024e-05/0.1338, allocations: 20.66 kB / 356.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1338, allocations: 4 kB / 356.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1338, allocations: 480 / 356.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.1339, allocations: 4.219 kB / 356.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.1341, allocations: 197.6 kB / 357 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.1341, allocations: 3.984 kB / 357 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001738/0.1343, allocations: 35.92 kB / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.1343, allocations: 11.92 kB / 357.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1344, allocations: 11.94 kB / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1344, allocations: 0 / 357.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.1344, allocations: 4 kB / 357.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005403/0.1349, allocations: 375.4 kB / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.321e-05/0.135, allocations: 88.98 kB / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.135, allocations: 3.938 kB / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001313/0.1352, allocations: 19.92 kB / 357.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.1352, allocations: 0 / 357.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.1352, allocations: 4 kB / 357.6 MB, free: 12.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.838e-05/0.1353, allocations: 99.27 kB / 357.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1353, allocations: 0 / 357.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003336/0.1357, allocations: 24 kB / 357.7 MB, free: 12.28 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.0001317/0.1358, allocations: 111.3 kB / 357.8 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003582/0.1362, allocations: 115.8 kB / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.1362, allocations: 0.875 kB / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.1363, allocations: 35.91 kB / 357.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005792/0.1369, allocations: 51.02 kB / 358 MB, free: 11.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008147/0.1377, allocations: 389.9 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.1381, allocations: 0.7084 MB / 359.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.567e-05/0.1381, allocations: 16.64 kB / 359.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.032e-05/0.1382, allocations: 11.44 kB / 359.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.094e-06/0.1382, allocations: 0 / 359.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of Templates: time 0.004478/0.1427, allocations: 1.169 MB / 360.3 MB, free: 9.668 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins/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