Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,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.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001598/0.001598, allocations: 114.5 kB / 17.69 MB, free: 5.312 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.001909/0.001908, allocations: 191 kB / 18.63 MB, free: 4.379 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.425/1.425, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 46.53 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1228, allocations: 49.45 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004184/0.127, allocations: 2.009 MB / 353.5 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009862/0.128, allocations: 0.5648 MB / 354.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.1281, allocations: 4 kB / 354.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001252/0.1283, allocations: 27.73 kB / 354.1 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.1285, allocations: 31.72 kB / 354.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002799/0.1288, allocations: 67.86 kB / 354.2 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001776/0.129, allocations: 135.5 kB / 354.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001601/0.1291, allocations: 57.66 kB / 354.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.573e-05/0.1292, allocations: 51.84 kB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.508e-05/0.1293, allocations: 63.69 kB / 354.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.1293, allocations: 12 kB / 354.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.975e-05/0.1294, allocations: 8 kB / 354.5 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.739e-05/0.1294, allocations: 31.86 kB / 354.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.174e-05/0.1295, allocations: 63.61 kB / 354.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002004/0.1297, allocations: 151.4 kB / 354.8 MB, free: 424 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.391e-06/0.1297, allocations: 0 / 354.8 MB, free: 424 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1297, allocations: 4 kB / 354.8 MB, free: 420 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.1297, allocations: 0 / 354.8 MB, free: 420 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007271/0.1305, allocations: 454.8 kB / 355.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.1305, allocations: 11.89 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.359e-05/0.1306, allocations: 20.75 kB / 355.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.1309, allocations: 212 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.1309, allocations: 20.36 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.368e-05/0.1309, allocations: 20.28 kB / 355.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004809/0.1314, allocations: 264.9 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.1314, allocations: 4 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.1315, allocations: 7.938 kB / 355.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.1315, allocations: 7.938 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002317/0.1317, allocations: 75.94 kB / 355.8 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006513/0.1324, allocations: 0.596 MB / 356.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003266/0.1327, allocations: 147.9 kB / 356.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001498/0.1329, allocations: 86.61 kB / 356.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.1329, allocations: 3.984 kB / 356.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.1329, allocations: 42.5 kB / 356.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.352e-06/0.133, allocations: 0 / 356.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004919/0.1335, allocations: 185.4 kB / 356.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.207e-05/0.1335, allocations: 114.8 kB / 357 MB, free: 13.91 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.1337, allocations: 158.2 kB / 357.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.1337, allocations: 25.7 kB / 357.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.37e-05/0.1338, allocations: 116.4 kB / 357.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.367e-05/0.1338, allocations: 31.62 kB / 357.3 MB, free: 13.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.153e-05/0.1339, allocations: 37.72 kB / 357.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.134, allocations: 322.9 kB / 357.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.1341, allocations: 35.97 kB / 357.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.1343, allocations: 144.8 kB / 357.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002887/0.1346, allocations: 185.5 kB / 358 MB, free: 12.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1346, allocations: 0 / 358 MB, free: 12.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003588/0.135, allocations: 193.2 kB / 358.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.135, allocations: 11.98 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.135, allocations: 4 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.777e-05/0.1351, allocations: 4 kB / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.1352, allocations: 43.92 kB / 358.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.199e-05/0.1352, allocations: 11.92 kB / 358.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.1353, allocations: 20.22 kB / 358.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.1354, allocations: 12 kB / 358.3 MB, free: 12.45 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001269/0.1355, allocations: 146 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001489/0.1357, allocations: 93.44 kB / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.691e-05/0.1357, allocations: 20.66 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1357, allocations: 0 / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.138e-06/0.1358, allocations: 4 kB / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1358, allocations: 7.922 kB / 358.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.136, allocations: 213.5 kB / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1361, allocations: 0 / 358.8 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001714/0.1362, allocations: 39.97 kB / 358.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.1362, allocations: 0 / 358.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/0.1363, allocations: 12 kB / 358.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.1363, allocations: 0 / 358.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1363, allocations: 0 / 358.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000518/0.1368, allocations: 392.6 kB / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.783e-05/0.1369, allocations: 97.03 kB / 359.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.29e-05/0.1369, allocations: 4 kB / 359.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.1371, allocations: 11.98 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.589e-05/0.1371, allocations: 4 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.1371, allocations: 4 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.415e-05/0.1372, allocations: 124 kB / 359.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1372, allocations: 4.062 kB / 359.5 MB, free: 11.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003181/0.1375, allocations: 35.84 kB / 359.5 MB, free: 11.16 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 (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.0001084/0.1377, allocations: 103.2 kB / 359.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003106/0.138, allocations: 120.6 kB / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.138, allocations: 4.062 kB / 359.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.674e-05/0.1381, allocations: 28.3 kB / 359.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004663/0.1386, allocations: 69.59 kB / 359.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006481/0.1392, allocations: 422.4 kB / 360.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002765/0.1395, allocations: 0.7162 MB / 361 MB, free: 9.641 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.427e-05/0.1396, allocations: 13.42 kB / 361 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.439e-05/0.1396, allocations: 23.38 kB / 361 MB, free: 9.605 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1396, allocations: 0 / 361 MB, free: 9.605 MB / 302.1 MB Notification: Performance of Templates: time 0.003825/0.1434, allocations: 1.324 MB / 362.3 MB, free: 8.324 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches