Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001165/0.001171, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001114/0.001114, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 60.69 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1196, allocations: 50.53 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003478/0.1232, allocations: 2.031 MB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.1242, allocations: 0.5999 MB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.1244, allocations: 7.938 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001317/0.1245, allocations: 19.8 kB / 361.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.1247, allocations: 31.72 kB / 361.6 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.125, allocations: 71.73 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.1252, allocations: 131.5 kB / 361.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.1254, allocations: 61.83 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.506e-05/0.1255, allocations: 43.86 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.898e-05/0.1256, allocations: 59.69 kB / 362 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.534e-05/0.1256, allocations: 12 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.414e-05/0.1256, allocations: 8 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.317e-05/0.1257, allocations: 43.78 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.508e-05/0.1258, allocations: 67.61 kB / 362.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001973/0.126, allocations: 143.4 kB / 362.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.126, allocations: 4 kB / 362.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.126, allocations: 0 / 362.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.126, allocations: 3.938 kB / 362.2 MB, free: 9.984 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006333/0.1267, allocations: 446.9 kB / 362.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1267, allocations: 12.03 kB / 362.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.1268, allocations: 24.64 kB / 362.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002689/0.127, allocations: 227.9 kB / 362.9 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.1271, allocations: 12.38 kB / 362.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.639e-05/0.1271, allocations: 12.38 kB / 362.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004891/0.1276, allocations: 262.8 kB / 363.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.1276, allocations: 4 kB / 363.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.1276, allocations: 0 / 363.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.1276, allocations: 4 kB / 363.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002299/0.1279, allocations: 87.88 kB / 363.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005732/0.1285, allocations: 0.5959 MB / 363.9 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.1288, allocations: 151.7 kB / 364 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.129, allocations: 78.64 kB / 364.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.129, allocations: 4.125 kB / 364.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.129, allocations: 46.55 kB / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.129, allocations: 0 / 364.2 MB, free: 7.812 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004745/0.1295, allocations: 185.3 kB / 364.4 MB, free: 7.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.1296, allocations: 106.8 kB / 364.5 MB, free: 7.496 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/0.1297, allocations: 160.7 kB / 364.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.1297, allocations: 25.7 kB / 364.6 MB, free: 7.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.469e-05/0.1298, allocations: 124.3 kB / 364.8 MB, free: 7.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.1298, allocations: 27.64 kB / 364.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/0.1299, allocations: 37.83 kB / 364.8 MB, free: 7.105 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.13, allocations: 322.8 kB / 365.1 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001083/0.1301, allocations: 39.97 kB / 365.2 MB, free: 6.742 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001542/0.1303, allocations: 137.2 kB / 365.3 MB, free: 6.562 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.1305, allocations: 185.9 kB / 365.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1306, allocations: 4 kB / 365.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003424/0.1309, allocations: 201.2 kB / 365.7 MB, free: 6.125 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1309, allocations: 8 kB / 365.7 MB, free: 6.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1309, allocations: 7.938 kB / 365.7 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.805e-05/0.131, allocations: 8.031 kB / 365.7 MB, free: 6.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.1311, allocations: 47.91 kB / 365.8 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.1311, allocations: 8.406 kB / 365.8 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001068/0.1313, allocations: 27.83 kB / 365.8 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.1313, allocations: 8 kB / 365.8 MB, free: 6.012 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.0001122/0.1314, allocations: 141.7 kB / 365.9 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.1315, allocations: 89.53 kB / 366 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.22e-05/0.1316, allocations: 20.7 kB / 366.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.1316, allocations: 0 / 366.1 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1316, allocations: 4 kB / 366.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1316, allocations: 0 / 366.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.1319, allocations: 221.4 kB / 366.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1319, allocations: 0 / 366.3 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001691/0.1321, allocations: 31.98 kB / 366.3 MB, free: 5.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1321, allocations: 4 kB / 366.3 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.1321, allocations: 7.984 kB / 366.3 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1321, allocations: 3.938 kB / 366.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/0.1321, allocations: 4 kB / 366.3 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004678/0.1326, allocations: 382.7 kB / 366.7 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.023e-05/0.1327, allocations: 101 kB / 366.8 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.1327, allocations: 4 kB / 366.8 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.1329, allocations: 8 kB / 366.8 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.1329, allocations: 7.984 kB / 366.8 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.017e-06/0.1329, allocations: 4 kB / 366.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.017e-05/0.133, allocations: 123.5 kB / 366.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.133, allocations: 3.938 kB / 366.9 MB, free: 4.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.1333, allocations: 35.84 kB / 367 MB, free: 4.738 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 8.86e-05/0.1334, allocations: 99.25 kB / 367.1 MB, free: 4.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002995/0.1337, allocations: 128.5 kB / 367.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1337, allocations: 0 / 367.2 MB, free: 4.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.837e-05/0.1338, allocations: 23.98 kB / 367.2 MB, free: 4.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004689/0.1343, allocations: 71.91 kB / 367.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006376/0.135, allocations: 422.2 kB / 367.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.1352, allocations: 0.7201 MB / 368.4 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.981e-05/0.1353, allocations: 13.42 kB / 368.4 MB, free: 3.199 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.514e-05/0.1353, allocations: 15.44 kB / 368.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1353, allocations: 0 / 368.5 MB, free: 3.184 MB / 302.1 MB Notification: Performance of Templates: time 0.003799/0.1391, allocations: 1.331 MB / 369.8 MB, free: 1.898 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches