Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,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.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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009703/0.0009707, allocations: 93.83 kB / 16.3 MB, free: 5.992 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.0008989/0.0008991, allocations: 181.6 kB / 17.19 MB, free: 5.906 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.328/1.328, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003021/0.0003021, allocations: 7.375 kB / 300.7 MB, free: 6.051 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.1151, allocations: 50.43 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00213/0.1172, allocations: 1.635 MB / 352.8 MB, free: 10.11 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007509/0.118, allocations: 479.1 kB / 353.2 MB, free: 9.641 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.863e-05/0.1181, allocations: 4 kB / 353.2 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.481e-05/0.1182, allocations: 15.86 kB / 353.3 MB, free: 9.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.758e-05/0.1183, allocations: 27.94 kB / 353.3 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002853/0.1186, allocations: 51.77 kB / 353.3 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.1187, allocations: 75.84 kB / 353.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.1188, allocations: 57.2 kB / 353.5 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.328e-05/0.1189, allocations: 31.86 kB / 353.5 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.077e-05/0.119, allocations: 43.77 kB / 353.5 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.699e-05/0.119, allocations: 4 kB / 353.5 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.678e-05/0.119, allocations: 4 kB / 353.5 MB, free: 9.332 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.106e-05/0.1191, allocations: 19.92 kB / 353.6 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.237e-05/0.1191, allocations: 41.64 kB / 353.6 MB, free: 9.266 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.1192, allocations: 91.75 kB / 353.7 MB, free: 9.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1192, allocations: 3.938 kB / 353.7 MB, free: 9.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.366e-06/0.1192, allocations: 4 kB / 353.7 MB, free: 9.168 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1192, allocations: 4 kB / 353.7 MB, free: 9.164 MB / 286.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.0005098/0.1198, allocations: 410.9 kB / 354.1 MB, free: 8.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.1198, allocations: 8.031 kB / 354.1 MB, free: 8.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.593e-05/0.1198, allocations: 23.7 kB / 354.1 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.1201, allocations: 191 kB / 354.3 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.249e-05/0.1201, allocations: 12 kB / 354.3 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.1201, allocations: 12 kB / 354.4 MB, free: 8.434 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004426/0.1206, allocations: 238.5 kB / 354.6 MB, free: 8.176 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.1206, allocations: 3.938 kB / 354.6 MB, free: 8.172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.1206, allocations: 11.89 kB / 354.6 MB, free: 8.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1206, allocations: 4 kB / 354.6 MB, free: 8.156 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002458/0.1209, allocations: 99.88 kB / 354.7 MB, free: 8.059 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005593/0.1214, allocations: 0.5842 MB / 355.3 MB, free: 7.402 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002409/0.1217, allocations: 151.9 kB / 355.4 MB, free: 7.227 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.469e-05/0.1217, allocations: 8.125 kB / 355.4 MB, free: 7.219 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.1217, allocations: 38.56 kB / 355.5 MB, free: 7.172 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.1218, allocations: 0 / 355.5 MB, free: 7.172 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004753/0.1222, allocations: 189.5 kB / 355.7 MB, free: 6.98 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.1223, allocations: 114.8 kB / 355.8 MB, free: 6.844 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.849e-05/0.1224, allocations: 132.5 kB / 355.9 MB, free: 6.703 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.1224, allocations: 29.7 kB / 355.9 MB, free: 6.668 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.906e-05/0.1225, allocations: 108 kB / 356 MB, free: 6.559 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.1225, allocations: 23.84 kB / 356.1 MB, free: 6.535 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.1225, allocations: 4 kB / 356.1 MB, free: 6.531 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.013e-05/0.1226, allocations: 326.8 kB / 356.4 MB, free: 6.203 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.1227, allocations: 40.34 kB / 356.4 MB, free: 6.164 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.1229, allocations: 143.5 kB / 356.6 MB, free: 5.98 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.123, allocations: 51.98 kB / 356.6 MB, free: 5.93 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.123, allocations: 7.938 kB / 356.6 MB, free: 5.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000329/0.1234, allocations: 201.5 kB / 356.8 MB, free: 5.719 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.1234, allocations: 8 kB / 356.8 MB, free: 5.711 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.1234, allocations: 4.047 kB / 356.8 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.1234, allocations: 7.984 kB / 356.8 MB, free: 5.699 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.1236, allocations: 43.98 kB / 356.9 MB, free: 5.656 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/0.1236, allocations: 15.88 kB / 356.9 MB, free: 5.641 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.631e-05/0.1237, allocations: 20.19 kB / 356.9 MB, free: 5.621 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.1237, allocations: 12 kB / 356.9 MB, free: 5.609 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.597e-05/0.1238, allocations: 125.7 kB / 357.1 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.124, allocations: 85.53 kB / 357.1 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.866e-05/0.124, allocations: 20.7 kB / 357.2 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.124, allocations: 0 / 357.2 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.124, allocations: 4 kB / 357.2 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.124, allocations: 3.953 kB / 357.2 MB, free: 5.355 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002369/0.1243, allocations: 205.5 kB / 357.4 MB, free: 5.105 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.1243, allocations: 4 kB / 357.4 MB, free: 5.102 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001603/0.1245, allocations: 39.92 kB / 357.4 MB, free: 5.062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.1245, allocations: 4 kB / 357.4 MB, free: 5.059 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.1245, allocations: 3.984 kB / 357.4 MB, free: 5.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1245, allocations: 0 / 357.4 MB, free: 5.055 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.1245, allocations: 4 kB / 357.4 MB, free: 5.051 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004868/0.125, allocations: 421.5 kB / 357.8 MB, free: 4.609 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.983e-05/0.125, allocations: 85.05 kB / 357.9 MB, free: 4.508 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.1251, allocations: 4 kB / 357.9 MB, free: 4.504 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.1252, allocations: 15.94 kB / 357.9 MB, free: 4.488 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.1253, allocations: 7.984 kB / 357.9 MB, free: 4.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-06/0.1253, allocations: 4 kB / 357.9 MB, free: 4.477 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.781e-05/0.1253, allocations: 95.27 kB / 358 MB, free: 4.383 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1253, allocations: 0 / 358 MB, free: 4.383 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003004/0.1256, allocations: 35.97 kB / 358.1 MB, free: 4.348 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.379e-05/0.1257, allocations: 109 kB / 358.2 MB, free: 4.234 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003002/0.1261, allocations: 124.6 kB / 358.3 MB, free: 4.113 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1261, allocations: 0 / 358.3 MB, free: 4.113 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.1262, allocations: 40 kB / 358.3 MB, free: 4.074 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.1265, allocations: 47.89 kB / 358.4 MB, free: 4.027 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006218/0.1272, allocations: 469.9 kB / 358.8 MB, free: 3.535 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.1274, allocations: 0.7165 MB / 359.6 MB, free: 2.793 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.298e-05/0.1275, allocations: 12.66 kB / 359.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/0.1275, allocations: 11.44 kB / 359.6 MB, free: 2.77 MB / 286.1 MB Notification: Performance of SimCode: time 1.472e-06/0.1275, allocations: 0 / 359.6 MB, free: 2.77 MB / 286.1 MB Notification: Performance of Templates: time 0.003118/0.1306, allocations: 0.9904 MB / 360.6 MB, free: 1.812 MB / 286.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches