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.0008957/0.0008959, allocations: 95.19 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001437, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003147/0.0003147, allocations: 4 kB / 307.7 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1083, allocations: 51.53 MB / 359.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003142/0.1115, allocations: 1.743 MB / 361 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.1128, allocations: 0.5767 MB / 361.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.113, allocations: 4 kB / 361.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.1132, allocations: 15.8 kB / 361.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.1134, allocations: 27.84 kB / 361.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.1138, allocations: 63.88 kB / 361.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001797/0.114, allocations: 119.6 kB / 361.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002332/0.1142, allocations: 53.52 kB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.041e-05/0.1143, allocations: 47.72 kB / 361.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.156e-05/0.1144, allocations: 47.72 kB / 361.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.1144, allocations: 8 kB / 361.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.057e-05/0.1145, allocations: 4 kB / 361.9 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.695e-05/0.1145, allocations: 31.83 kB / 362 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.857e-05/0.1146, allocations: 85.31 kB / 362.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000186/0.1148, allocations: 123.8 kB / 362.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.1148, allocations: 4 kB / 362.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1148, allocations: 0 / 362.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1149, allocations: 0 / 362.2 MB, free: 10.35 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.0007105/0.1156, allocations: 434.9 kB / 362.6 MB, free: 9.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.1156, allocations: 12.03 kB / 362.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.18e-05/0.1157, allocations: 24.59 kB / 362.6 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.116, allocations: 217.2 kB / 362.9 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.116, allocations: 8.375 kB / 362.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.116, allocations: 16.38 kB / 362.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006103/0.1166, allocations: 254.9 kB / 363.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.1167, allocations: 0 / 363.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.1167, allocations: 8 kB / 363.1 MB, free: 9.285 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.1167, allocations: 4 kB / 363.1 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002727/0.117, allocations: 95.86 kB / 363.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007359/0.1177, allocations: 0.6037 MB / 363.8 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003605/0.1181, allocations: 159.7 kB / 364 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001676/0.1183, allocations: 86.77 kB / 364.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.1183, allocations: 0 / 364.1 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.1184, allocations: 42.56 kB / 364.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.483e-06/0.1184, allocations: 0 / 364.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005542/0.1189, allocations: 205.6 kB / 364.3 MB, free: 7.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/0.119, allocations: 114.8 kB / 364.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.1192, allocations: 152.7 kB / 364.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.153e-05/0.1192, allocations: 33.7 kB / 364.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.732e-05/0.1193, allocations: 116.5 kB / 364.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.1193, allocations: 27.64 kB / 364.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.728e-05/0.1194, allocations: 25.7 kB / 364.8 MB, free: 7.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002251/0.1196, allocations: 322.8 kB / 365.1 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.1197, allocations: 39.92 kB / 365.1 MB, free: 7.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002729/0.12, allocations: 144.5 kB / 365.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003288/0.1203, allocations: 197.5 kB / 365.5 MB, free: 6.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.1203, allocations: 3.938 kB / 365.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005781/0.1209, allocations: 209.1 kB / 365.7 MB, free: 6.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.121, allocations: 8 kB / 365.7 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.121, allocations: 4 kB / 365.7 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.121, allocations: 7.938 kB / 365.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001658/0.1212, allocations: 52.38 kB / 365.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.1212, allocations: 8 kB / 365.8 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001119/0.1213, allocations: 19.84 kB / 365.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.61e-05/0.1213, allocations: 12 kB / 365.8 MB, free: 6.348 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.0001293/0.1215, allocations: 141.7 kB / 365.9 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.1216, allocations: 97.38 kB / 366 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.1218, allocations: 20.7 kB / 366 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1218, allocations: 4 kB / 366 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1218, allocations: 4 kB / 366 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1218, allocations: 0 / 366 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003314/0.1221, allocations: 209.5 kB / 366.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1221, allocations: 0 / 366.3 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.1223, allocations: 43.91 kB / 366.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.1223, allocations: 0 / 366.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1224, allocations: 4 kB / 366.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1224, allocations: 0 / 366.3 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.1224, allocations: 4 kB / 366.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005623/0.1229, allocations: 403.3 kB / 366.7 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.493e-05/0.123, allocations: 101 kB / 366.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.67e-05/0.1231, allocations: 11.92 kB / 366.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.1232, allocations: 11.94 kB / 366.8 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.381e-05/0.1233, allocations: 11.98 kB / 366.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.1233, allocations: 4 kB / 366.8 MB, free: 5.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.1234, allocations: 123.5 kB / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1234, allocations: 0 / 367 MB, free: 5.074 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.1238, allocations: 31.94 kB / 367 MB, free: 5.043 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.0001077/0.1239, allocations: 96.02 kB / 367.1 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003468/0.1242, allocations: 140.2 kB / 367.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1242, allocations: 0 / 367.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.1243, allocations: 31.92 kB / 367.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005205/0.1249, allocations: 68.5 kB / 367.3 MB, free: 4.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008671/0.1258, allocations: 0.5094 MB / 367.8 MB, free: 4.156 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.1261, allocations: 0.7282 MB / 368.6 MB, free: 3.398 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.86e-05/0.1261, allocations: 9.422 kB / 368.6 MB, free: 3.391 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.1262, allocations: 19.38 kB / 368.6 MB, free: 3.371 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1262, allocations: 0 / 368.6 MB, free: 3.371 MB / 302.1 MB Notification: Performance of Templates: time 0.004333/0.1305, allocations: 1.2 MB / 369.8 MB, free: 2.215 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches