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.0008585/0.0008589, allocations: 92.28 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001026/0.001026, allocations: 206.3 kB / 18.29 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.425/1.425, allocations: 227.7 MB / 246.8 MB, free: 11.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002304/0.0002304, allocations: 11.98 kB / 307.7 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1179, allocations: 51.52 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002453/0.1204, allocations: 1.708 MB / 361 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001045/0.1214, allocations: 0.526 MB / 361.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001/0.1216, allocations: 4 kB / 361.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000117/0.1217, allocations: 11.86 kB / 361.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.153e-05/0.1218, allocations: 27.83 kB / 361.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003267/0.1221, allocations: 43.58 kB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000156/0.1223, allocations: 111.6 kB / 361.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.1224, allocations: 53.08 kB / 361.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.138e-05/0.1225, allocations: 47.72 kB / 361.8 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.917e-05/0.1226, allocations: 39.78 kB / 361.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.121e-05/0.1226, allocations: 4 kB / 361.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.766e-05/0.1226, allocations: 7.938 kB / 361.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.752e-05/0.1227, allocations: 15.92 kB / 361.9 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.499e-05/0.1228, allocations: 81.36 kB / 361.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001586/0.1229, allocations: 123.8 kB / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1229, allocations: 0 / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1229, allocations: 0 / 362.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.123, allocations: 0 / 362.1 MB, free: 10.46 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.0005922/0.1236, allocations: 409.9 kB / 362.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.1236, allocations: 12.03 kB / 362.5 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.1237, allocations: 16.75 kB / 362.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.1239, allocations: 200.1 kB / 362.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.1239, allocations: 12.38 kB / 362.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.641e-05/0.124, allocations: 12.38 kB / 362.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005436/0.1245, allocations: 246.9 kB / 362.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.1246, allocations: 3.906 kB / 362.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.1246, allocations: 4 kB / 362.9 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.1246, allocations: 4 kB / 363 MB, free: 9.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002833/0.1249, allocations: 99.88 kB / 363 MB, free: 9.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007299/0.1256, allocations: 0.5882 MB / 363.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.1259, allocations: 151.9 kB / 363.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.1261, allocations: 78.64 kB / 363.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.1262, allocations: 0 / 363.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.1262, allocations: 46.5 kB / 363.9 MB, free: 8.375 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.444e-06/0.1262, allocations: 3.984 kB / 363.9 MB, free: 8.371 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005379/0.1267, allocations: 193.4 kB / 364.1 MB, free: 8.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.496e-05/0.1268, allocations: 114.8 kB / 364.2 MB, free: 8.039 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001161/0.1269, allocations: 122.5 kB / 364.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.111e-05/0.127, allocations: 33.69 kB / 364.4 MB, free: 7.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.37e-05/0.1271, allocations: 111.9 kB / 364.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.1271, allocations: 23.66 kB / 364.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.1271, allocations: 25.64 kB / 364.5 MB, free: 7.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1273, allocations: 326.8 kB / 364.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.1274, allocations: 40 kB / 364.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.1276, allocations: 136.8 kB / 365 MB, free: 7.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003045/0.1279, allocations: 196.6 kB / 365.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.1279, allocations: 0 / 365.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003846/0.1283, allocations: 201.6 kB / 365.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.1283, allocations: 4.031 kB / 365.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.1283, allocations: 8 kB / 365.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.1284, allocations: 7.938 kB / 365.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001699/0.1285, allocations: 43.92 kB / 365.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.1285, allocations: 11.97 kB / 365.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.1287, allocations: 23.84 kB / 365.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.1287, allocations: 12 kB / 365.5 MB, free: 6.602 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.0001069/0.1288, allocations: 137.7 kB / 365.6 MB, free: 6.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.1289, allocations: 85.53 kB / 365.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.832e-05/0.129, allocations: 16.66 kB / 365.7 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.129, allocations: 4 kB / 365.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.129, allocations: 0 / 365.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.129, allocations: 0 / 365.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002605/0.1293, allocations: 205.5 kB / 366 MB, free: 6.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1293, allocations: 4 kB / 366 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.1295, allocations: 39.91 kB / 366 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1295, allocations: 4 kB / 366 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.1295, allocations: 11.94 kB / 366 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1295, allocations: 0 / 366 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.1295, allocations: 0 / 366 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005434/0.1301, allocations: 383.5 kB / 366.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.1301, allocations: 84.95 kB / 366.5 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.356e-05/0.1302, allocations: 11.92 kB / 366.5 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.1303, allocations: 16.06 kB / 366.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.729e-05/0.1303, allocations: 7.922 kB / 366.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.608e-06/0.1304, allocations: 4 kB / 366.5 MB, free: 5.504 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.24e-05/0.1304, allocations: 101.5 kB / 366.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1304, allocations: 96 / 366.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003048/0.1308, allocations: 31.84 kB / 366.6 MB, free: 5.375 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.0001031/0.1309, allocations: 103.2 kB / 366.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000327/0.1312, allocations: 127.7 kB / 366.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1312, allocations: 0.875 kB / 366.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.1313, allocations: 35.98 kB / 366.9 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004775/0.1318, allocations: 56.31 kB / 367 MB, free: 5.047 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007089/0.1325, allocations: 485 kB / 367.4 MB, free: 4.543 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.1329, allocations: 0.7126 MB / 368.1 MB, free: 3.801 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.657e-05/0.1329, allocations: 12.59 kB / 368.2 MB, free: 3.789 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.004e-05/0.133, allocations: 15.44 kB / 368.2 MB, free: 3.773 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.133, allocations: 0 / 368.2 MB, free: 3.773 MB / 302.1 MB Notification: Performance of Templates: time 0.003451/0.1364, allocations: 1.049 MB / 369.2 MB, free: 2.766 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 -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/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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches