Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO") translateModel(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008283/0.008283, allocations: 97.48 kB / 15.73 MB, free: 5.988 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.001624/0.001625, allocations: 191.9 kB / 16.67 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.865/1.865, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05934/0.05934, allocations: 10.75 MB / 280.6 MB, free: 10.42 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001463, allocations: 70.72 kB / 390.8 MB, free: 5.031 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.396/0.3974, allocations: 49.01 MB / 439.9 MB, free: 5.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003336/0.4008, allocations: 1.588 MB / 441.4 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006912/0.4015, allocations: 252.8 kB / 441.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.522e-05/0.4016, allocations: 1.281 kB / 441.7 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.718e-05/0.4017, allocations: 12.38 kB / 441.7 MB, free: 4.043 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001125/0.4018, allocations: 16.11 kB / 441.7 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003371/0.4021, allocations: 70.23 kB / 441.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.4023, allocations: 99.41 kB / 441.9 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001544/0.4025, allocations: 19.72 kB / 441.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.621e-05/0.4026, allocations: 45.72 kB / 441.9 MB, free: 3.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.91e-05/0.4027, allocations: 49.73 kB / 442 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/0.4027, allocations: 9.281 kB / 442 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.4028, allocations: 30.5 kB / 442 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.233e-05/0.4029, allocations: 36.22 kB / 442.1 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.82e-05/0.4029, allocations: 45.23 kB / 442.1 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002386/0.4032, allocations: 117.4 kB / 442.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4032, allocations: 0 / 442.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.4032, allocations: 2.078 kB / 442.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.4032, allocations: 0 / 442.2 MB, free: 3.777 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006371/0.4039, allocations: 427 kB / 442.6 MB, free: 3.363 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.4039, allocations: 16.05 kB / 442.7 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.556e-05/0.404, allocations: 19.72 kB / 442.7 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.4042, allocations: 211.1 kB / 442.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.4042, allocations: 7.875 kB / 442.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.4043, allocations: 13.81 kB / 442.9 MB, free: 3.113 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.4045, allocations: 88.27 kB / 443 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.4045, allocations: 192 / 443 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.619e-05/0.4046, allocations: 4.781 kB / 443 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.4046, allocations: 2.75 kB / 443 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.4047, allocations: 49.19 kB / 443.1 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006477/0.4054, allocations: 379.8 kB / 443.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002384/0.4056, allocations: 99.17 kB / 443.5 MB, free: 2.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.4058, allocations: 60.2 kB / 443.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.669e-05/0.4058, allocations: 5.266 kB / 443.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003169/0.4061, allocations: 123.9 kB / 443.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.563e-06/0.4061, allocations: 0 / 443.7 MB, free: 2.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004933/0.4066, allocations: 179.8 kB / 443.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.361e-05/0.4067, allocations: 59.47 kB / 443.9 MB, free: 2.418 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001992/0.4069, allocations: 167.7 kB / 444.1 MB, free: 2.293 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.325e-05/0.4069, allocations: 32.81 kB / 444.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.912e-05/0.407, allocations: 120.8 kB / 444.3 MB, free: 2.145 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.879e-05/0.407, allocations: 44.64 kB / 444.3 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-05/0.4071, allocations: 36.47 kB / 444.3 MB, free: 2.082 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.963e-05/0.4072, allocations: 331.4 kB / 444.7 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.675e-05/0.4073, allocations: 31.58 kB / 444.7 MB, free: 1.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001242/0.4074, allocations: 80.95 kB / 444.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.4076, allocations: 124.3 kB / 444.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.4076, allocations: 3.938 kB / 444.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002708/0.4079, allocations: 157 kB / 445 MB, free: 1.504 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.408, allocations: 6.734 kB / 445 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.408, allocations: 1.062 kB / 445 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.408, allocations: 3.219 kB / 445.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001736/0.4082, allocations: 33.61 kB / 445.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.4082, allocations: 3.734 kB / 445.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.079e-05/0.4083, allocations: 13.58 kB / 445.1 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.4083, allocations: 6 kB / 445.1 MB, free: 1.488 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_TU.y,$PRE.fO_dig_TU.y,fO_dig_FE.y,$PRE.fO_dig_FE.y,fO_dig_BE.y,$PRE.fO_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 9.463e-05/0.4084, allocations: 138 kB / 445.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.442e-05/0.4084, allocations: 14.03 kB / 445.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/0.4085, allocations: 18.11 kB / 445.3 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.4085, allocations: 3.125 kB / 445.3 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.4085, allocations: 4 kB / 445.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.4085, allocations: 0.5156 kB / 445.3 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000475/0.409, allocations: 436.5 kB / 445.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.409, allocations: 0.6562 kB / 445.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.913e-05/0.4091, allocations: 20.73 kB / 445.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.4091, allocations: 1.469 kB / 445.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.4091, allocations: 2.125 kB / 445.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.4091, allocations: 2.312 kB / 445.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4091, allocations: 3.938 kB / 445.7 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004549/0.4096, allocations: 301.3 kB / 446 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.64e-05/0.4097, allocations: 89.41 kB / 446.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/0.4097, allocations: 1.812 kB / 446.1 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.89e-05/0.4098, allocations: 8.516 kB / 446.1 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.72e-05/0.4099, allocations: 11.47 kB / 446.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.4099, allocations: 5.016 kB / 446.1 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.41, allocations: 130.6 kB / 446.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.41, allocations: 3.938 kB / 446.3 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002748/0.4103, allocations: 30.02 kB / 446.3 MB, free: 0.543 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (fO.y) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_BE.y,fO_dig_FE.y,fO_dig_TU.y) * Number of discrete states: 6 (fO_dig_TU.u,fO_dig_TU.y,fO_dig_FE.u,fO_dig_FE.y,fO_dig_BE.u,fO_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001557/0.4104, allocations: 109.3 kB / 446.4 MB, free: 464 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002574/0.4107, allocations: 99.61 kB / 446.5 MB, free: 436 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.4107, allocations: 384 / 446.5 MB, free: 436 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.4108, allocations: 56.23 kB / 446.6 MB, free: 416 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.4112, allocations: 27.44 kB / 446.6 MB, free: 408 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007547/0.4119, allocations: 291.7 kB / 446.9 MB, free: 212 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003505/0.4123, allocations: 0.7097 MB / 447.6 MB, free: 15.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.292e-05/0.4124, allocations: 18.45 kB / 447.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.4124, allocations: 17.09 kB / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4124, allocations: 0 / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of Templates: time 0.005542/0.418, allocations: 1.391 MB / 449 MB, free: 15.14 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.sim & ./IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)