Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001493/0.001493, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00168/0.001681, 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.44/1.44, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 61.31 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1109, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00353/0.1145, allocations: 2.013 MB / 360.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008971/0.1154, allocations: 0.5338 MB / 361.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.883e-05/0.1155, allocations: 3.938 kB / 361.4 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.1156, allocations: 23.8 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.872e-05/0.1157, allocations: 19.78 kB / 361.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.116, allocations: 63.38 kB / 361.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001617/0.1162, allocations: 119.5 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001619/0.1163, allocations: 61.38 kB / 361.7 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.104e-05/0.1164, allocations: 47.8 kB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.708e-05/0.1165, allocations: 51.77 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.653e-05/0.1165, allocations: 12 kB / 361.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.903e-05/0.1165, allocations: 11.94 kB / 361.8 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.147e-05/0.1166, allocations: 27.91 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.587e-05/0.1167, allocations: 55.73 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001607/0.1168, allocations: 123.5 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.1168, allocations: 4 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1168, allocations: 3.938 kB / 362.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1169, allocations: 0 / 362.1 MB, free: 10.16 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.0006254/0.1175, allocations: 431 kB / 362.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.1175, allocations: 8.031 kB / 362.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.798e-05/0.1176, allocations: 12.84 kB / 362.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002669/0.1179, allocations: 212 kB / 362.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.1179, allocations: 12.31 kB / 362.7 MB, free: 9.41 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.569e-05/0.118, allocations: 12.38 kB / 362.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004865/0.1185, allocations: 242.9 kB / 363 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1185, allocations: 7.922 kB / 363 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.1185, allocations: 4 kB / 363 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.1185, allocations: 4 kB / 363 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002448/0.1188, allocations: 83.88 kB / 363.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000613/0.1194, allocations: 0.5804 MB / 363.6 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002596/0.1197, allocations: 151.9 kB / 363.8 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.1198, allocations: 78.56 kB / 363.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.1198, allocations: 0 / 363.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.1199, allocations: 38.56 kB / 363.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.232e-06/0.1199, allocations: 0 / 363.9 MB, free: 8.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004977/0.1204, allocations: 181.2 kB / 364.1 MB, free: 7.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.988e-05/0.1205, allocations: 114.8 kB / 364.2 MB, free: 7.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.495e-05/0.1206, allocations: 126.1 kB / 364.3 MB, free: 7.617 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.1206, allocations: 25.7 kB / 364.3 MB, free: 7.586 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.987e-05/0.1207, allocations: 111.8 kB / 364.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.27e-05/0.1207, allocations: 35.75 kB / 364.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.317e-05/0.1208, allocations: 41.64 kB / 364.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.1209, allocations: 322.8 kB / 364.8 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.1211, allocations: 35.97 kB / 364.9 MB, free: 7.031 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.1214, allocations: 134.6 kB / 365 MB, free: 6.859 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004608/0.1219, allocations: 176.7 kB / 365.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1219, allocations: 0 / 365.2 MB, free: 6.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005831/0.1225, allocations: 193.1 kB / 365.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.1225, allocations: 11.94 kB / 365.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.298e-05/0.1225, allocations: 4 kB / 365.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.1226, allocations: 8.172 kB / 365.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002573/0.1228, allocations: 44.3 kB / 365.4 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.715e-05/0.1229, allocations: 11.92 kB / 365.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.123, allocations: 20.28 kB / 365.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.1231, allocations: 12 kB / 365.5 MB, free: 6.336 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.000139/0.1232, allocations: 137.6 kB / 365.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002221/0.1234, allocations: 81.58 kB / 365.7 MB, free: 6.105 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.821e-05/0.1235, allocations: 24.66 kB / 365.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1235, allocations: 0 / 365.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1235, allocations: 0 / 365.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.1236, allocations: 4 kB / 365.7 MB, free: 6.078 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003846/0.124, allocations: 197.6 kB / 365.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.124, allocations: 4 kB / 365.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.1242, allocations: 39.91 kB / 366 MB, free: 5.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1242, allocations: 4 kB / 366 MB, free: 5.789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.1242, allocations: 3.938 kB / 366 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.1242, allocations: 4 kB / 366 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1242, allocations: 0 / 366 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005113/0.1247, allocations: 371.4 kB / 366.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.419e-05/0.1248, allocations: 92.95 kB / 366.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.1248, allocations: 7.922 kB / 366.4 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.125, allocations: 8 kB / 366.4 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.307e-05/0.125, allocations: 7.984 kB / 366.4 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.125, allocations: 4 kB / 366.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.107e-05/0.1251, allocations: 103.3 kB / 366.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1251, allocations: 0 / 366.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003106/0.1255, allocations: 24 kB / 366.6 MB, free: 5.137 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.000105/0.1256, allocations: 95.25 kB / 366.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003206/0.1259, allocations: 128.5 kB / 366.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1259, allocations: 0 / 366.8 MB, free: 4.906 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.037e-05/0.126, allocations: 27.92 kB / 366.8 MB, free: 4.879 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.1265, allocations: 48.39 kB / 366.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006779/0.1272, allocations: 404.7 kB / 367.3 MB, free: 4.402 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.1275, allocations: 0.7122 MB / 368 MB, free: 3.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.447e-05/0.1275, allocations: 20.59 kB / 368 MB, free: 3.641 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.785e-05/0.1276, allocations: 11.44 kB / 368 MB, free: 3.629 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1276, allocations: 0 / 368 MB, free: 3.629 MB / 302.1 MB Notification: Performance of Templates: time 0.003791/0.1314, allocations: 1.169 MB / 369.2 MB, free: 2.508 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches