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.001311/0.001312, allocations: 105.2 kB / 16.36 MB, free: 6.285 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.001437/0.001438, allocations: 192 kB / 17.29 MB, free: 5.863 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.7/1.7, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05768/0.05768, allocations: 10.74 MB / 281.3 MB, free: 1.305 MB / 222.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.002665/0.002665, allocations: 72.12 kB / 342 MB, free: 4.449 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3848/0.3874, allocations: 49.01 MB / 391 MB, free: 49.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003616/0.3911, allocations: 1.597 MB / 392.6 MB, free: 48.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007519/0.3919, allocations: 250 kB / 392.8 MB, free: 48.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.727e-05/0.392, allocations: 1.906 kB / 392.8 MB, free: 48.64 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.341e-05/0.3921, allocations: 8.859 kB / 392.8 MB, free: 48.63 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001139/0.3922, allocations: 19.91 kB / 392.9 MB, free: 48.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.3925, allocations: 65.17 kB / 392.9 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.3928, allocations: 109.8 kB / 393 MB, free: 48.53 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.3929, allocations: 25.22 kB / 393.1 MB, free: 48.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.01e-05/0.393, allocations: 37.55 kB / 393.1 MB, free: 48.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.3931, allocations: 58.53 kB / 393.1 MB, free: 48.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.3932, allocations: 7.625 kB / 393.2 MB, free: 48.46 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.931e-05/0.3933, allocations: 30.66 kB / 393.2 MB, free: 48.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.541e-05/0.3933, allocations: 24.91 kB / 393.2 MB, free: 48.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.042e-05/0.3934, allocations: 49.08 kB / 393.3 MB, free: 48.4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000209/0.3936, allocations: 108.5 kB / 393.4 MB, free: 48.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3936, allocations: 5.719 kB / 393.4 MB, free: 48.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3936, allocations: 0 / 393.4 MB, free: 48.35 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.3936, allocations: 0 / 393.4 MB, free: 48.35 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.0005945/0.3942, allocations: 423.4 kB / 393.8 MB, free: 47.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3943, allocations: 13.33 kB / 393.8 MB, free: 47.94 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.619e-05/0.3943, allocations: 24.27 kB / 393.8 MB, free: 47.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.3945, allocations: 207.5 kB / 394 MB, free: 47.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.3946, allocations: 7.125 kB / 394 MB, free: 47.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.3946, allocations: 7.953 kB / 394 MB, free: 47.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.3948, allocations: 94.55 kB / 394.1 MB, free: 47.65 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3948, allocations: 192 / 394.1 MB, free: 47.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.599e-05/0.3949, allocations: 8.594 kB / 394.1 MB, free: 47.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3949, allocations: 6.688 kB / 394.1 MB, free: 47.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001321/0.395, allocations: 45.62 kB / 394.2 MB, free: 47.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006281/0.3956, allocations: 375.1 kB / 394.6 MB, free: 47.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.3959, allocations: 107.4 kB / 394.7 MB, free: 47.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001208/0.396, allocations: 56.3 kB / 394.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.46e-05/0.396, allocations: 1.375 kB / 394.7 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.3963, allocations: 110.4 kB / 394.8 MB, free: 47.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.3963, allocations: 0 / 394.8 MB, free: 47.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004815/0.3968, allocations: 187.3 kB / 395 MB, free: 47.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.191e-05/0.3969, allocations: 55.42 kB / 395.1 MB, free: 47.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001649/0.3971, allocations: 173.8 kB / 395.2 MB, free: 46.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.606e-05/0.3971, allocations: 31.73 kB / 395.3 MB, free: 46.85 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.647e-05/0.3971, allocations: 109.2 kB / 395.4 MB, free: 46.75 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.328e-05/0.3972, allocations: 36.53 kB / 395.4 MB, free: 46.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.739e-05/0.3973, allocations: 44.84 kB / 395.4 MB, free: 46.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.3973, allocations: 330.3 kB / 395.8 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.058e-05/0.3974, allocations: 31.58 kB / 395.8 MB, free: 46.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.653e-05/0.3975, allocations: 85.09 kB / 395.9 MB, free: 46.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001764/0.3977, allocations: 127.6 kB / 396 MB, free: 46.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3977, allocations: 0 / 396 MB, free: 46.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002608/0.398, allocations: 168.6 kB / 396.2 MB, free: 46.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.398, allocations: 8.312 kB / 396.2 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.398, allocations: 1.562 kB / 396.2 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.307e-05/0.3981, allocations: 3.031 kB / 396.2 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.3982, allocations: 25.88 kB / 396.2 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.3982, allocations: 2.719 kB / 396.2 MB, free: 46.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.402e-05/0.3983, allocations: 18.73 kB / 396.2 MB, free: 46.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.691e-05/0.3983, allocations: 5.594 kB / 396.2 MB, free: 46.08 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.168e-05/0.3984, allocations: 133.8 kB / 396.4 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.3985, allocations: 10.42 kB / 396.4 MB, free: 45.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.715e-05/0.3985, allocations: 18.59 kB / 396.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3985, allocations: 1.469 kB / 396.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.3985, allocations: 1.312 kB / 396.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.3985, allocations: 0.6562 kB / 396.4 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000476/0.399, allocations: 447.3 kB / 396.8 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.399, allocations: 0 / 396.8 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.3991, allocations: 18.33 kB / 396.9 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3992, allocations: 0.8438 kB / 396.9 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.505e-05/0.3992, allocations: 2.75 kB / 396.9 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.3992, allocations: 0 / 396.9 MB, free: 45.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3992, allocations: 5.938 kB / 396.9 MB, free: 45.56 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004261/0.3996, allocations: 299.3 kB / 397.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.022e-05/0.3997, allocations: 93.47 kB / 397.2 MB, free: 45.26 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.3997, allocations: 1.906 kB / 397.2 MB, free: 45.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.78e-05/0.3998, allocations: 12.58 kB / 397.3 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.3998, allocations: 11.22 kB / 397.3 MB, free: 45.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.3999, allocations: 8.797 kB / 397.3 MB, free: 45.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.593e-05/0.4, allocations: 126.2 kB / 397.4 MB, free: 45.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4, allocations: 0 / 397.4 MB, free: 45.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002868/0.4003, allocations: 30.44 kB / 397.4 MB, free: 45.15 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.0001589/0.4004, allocations: 113.2 kB / 397.5 MB, free: 45.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003171/0.4008, allocations: 108.1 kB / 397.6 MB, free: 45.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4008, allocations: 3.938 kB / 397.7 MB, free: 45.02 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.4009, allocations: 51.59 kB / 397.7 MB, free: 45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.4012, allocations: 33.11 kB / 397.7 MB, free: 44.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007426/0.402, allocations: 278.3 kB / 398 MB, free: 44.81 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001896/0.4022, allocations: 0.7069 MB / 398.7 MB, free: 44.12 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.75e-05/0.4023, allocations: 18.05 kB / 398.7 MB, free: 44.11 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.611e-05/0.4023, allocations: 16.06 kB / 398.7 MB, free: 44.11 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4023, allocations: 0 / 398.7 MB, free: 44.11 MB / 318.1 MB Notification: Performance of Templates: time 0.005358/0.4077, allocations: 1.352 MB / 400.1 MB, free: 43.91 MB / 318.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 -s cvode -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)