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: "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01028/0.01028, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.53/1.53, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.0541/0.0541, allocations: 10.74 MB / 281.5 MB, free: 10.46 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.0004909/0.000491, allocations: 16 kB / 342.3 MB, free: 23.4 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09331/0.09381, allocations: 50 MB / 392.3 MB, free: 5.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.00177/0.09563, allocations: 1.312 MB / 393.6 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006119/0.09627, allocations: 255.2 kB / 393.9 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.18e-05/0.09634, allocations: 0 / 393.9 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.706e-05/0.09638, allocations: 3.938 kB / 393.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.943e-05/0.09649, allocations: 7.938 kB / 393.9 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.09676, allocations: 59.88 kB / 394 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.09693, allocations: 99.64 kB / 394.1 MB, free: 3.594 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.09706, allocations: 29.42 kB / 394.1 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.882e-05/0.09711, allocations: 27.86 kB / 394.1 MB, free: 3.535 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.641e-05/0.0972, allocations: 51.64 kB / 394.2 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.09722, allocations: 4 kB / 394.2 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.745e-05/0.09731, allocations: 31.97 kB / 394.2 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.708e-05/0.09734, allocations: 15.92 kB / 394.2 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.73e-05/0.09742, allocations: 65.44 kB / 394.3 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001579/0.09758, allocations: 107.5 kB / 394.4 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.09759, allocations: 4 kB / 394.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.0976, allocations: 0 / 394.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.09761, allocations: 0 / 394.4 MB, free: 3.254 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005431/0.09816, allocations: 410.7 kB / 394.8 MB, free: 2.805 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.09821, allocations: 11.97 kB / 394.8 MB, free: 2.793 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.932e-05/0.09827, allocations: 38.75 kB / 394.8 MB, free: 2.746 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.956e-05/0.09831, allocations: 20.73 kB / 394.9 MB, free: 2.727 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.09853, allocations: 216.7 kB / 395.1 MB, free: 2.477 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.09856, allocations: 4.375 kB / 395.1 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.67e-05/0.09859, allocations: 8.375 kB / 395.1 MB, free: 2.465 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.0988, allocations: 90.2 kB / 395.2 MB, free: 2.371 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.397e-06/0.09881, allocations: 3.938 kB / 395.2 MB, free: 2.367 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.09883, allocations: 4 kB / 395.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.09884, allocations: 0 / 395.2 MB, free: 2.363 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.09897, allocations: 51.97 kB / 395.2 MB, free: 2.312 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005823/0.09957, allocations: 384.5 kB / 395.6 MB, free: 1.887 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.09977, allocations: 110.6 kB / 395.7 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.09989, allocations: 52.84 kB / 395.8 MB, free: 1.715 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.35e-05/0.09991, allocations: 7.938 kB / 395.8 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002341/0.1001, allocations: 111.3 kB / 395.9 MB, free: 1.586 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.382e-06/0.1002, allocations: 4 kB / 395.9 MB, free: 1.582 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003924/0.1006, allocations: 185.5 kB / 396.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.055e-05/0.1006, allocations: 59.28 kB / 396.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.1008, allocations: 171.3 kB / 396.3 MB, free: 1.145 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.848e-05/0.1008, allocations: 33.7 kB / 396.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.218e-05/0.1009, allocations: 112 kB / 396.4 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.923e-05/0.1009, allocations: 31.62 kB / 396.5 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.782e-05/0.1009, allocations: 25.7 kB / 396.5 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.101, allocations: 330.8 kB / 396.8 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.427e-05/0.1011, allocations: 31.98 kB / 396.8 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.1012, allocations: 85.94 kB / 396.9 MB, free: 472 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001776/0.1014, allocations: 133.9 kB / 397.1 MB, free: 316 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1014, allocations: 4 kB / 397.1 MB, free: 312 kB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00024/0.1017, allocations: 157.3 kB / 397.2 MB, free: 148 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.1017, allocations: 8 kB / 397.2 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.1017, allocations: 0 / 397.2 MB, free: 140 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.1017, allocations: 8.188 kB / 397.2 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.1019, allocations: 31.92 kB / 397.3 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1019, allocations: 3.984 kB / 397.3 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.331e-05/0.1019, allocations: 19.84 kB / 397.3 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.398e-06/0.102, allocations: 7.938 kB / 397.3 MB, free: 68 kB / 286.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 0.0001021/0.1021, allocations: 136.7 kB / 397.4 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.1021, allocations: 7.906 kB / 397.4 MB, free: 15.92 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.815e-05/0.1021, allocations: 25.52 kB / 397.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1022, allocations: 4 kB / 397.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1022, allocations: 0 / 397.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1022, allocations: 0 / 397.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004871/0.1027, allocations: 450.9 kB / 397.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1027, allocations: 0 / 397.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.01e-05/0.1028, allocations: 15.94 kB / 397.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.1028, allocations: 11.98 kB / 397.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.139e-05/0.1028, allocations: 0 / 397.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1028, allocations: 0 / 397.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1028, allocations: 3.938 kB / 397.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003996/0.1032, allocations: 299.4 kB / 398.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.185e-05/0.1033, allocations: 93.11 kB / 398.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.1033, allocations: 4 kB / 398.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.088e-05/0.1034, allocations: 11.94 kB / 398.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.1034, allocations: 15.92 kB / 398.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.1035, allocations: 7.984 kB / 398.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.297e-05/0.1036, allocations: 120 kB / 398.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1036, allocations: 3.938 kB / 398.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000254/0.1038, allocations: 28 kB / 398.5 MB, free: 14.76 MB / 302.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.0006605/0.1045, allocations: 0.8373 MB / 399.3 MB, free: 13.89 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002331/0.1047, allocations: 111.9 kB / 399.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1047, allocations: 0 / 399.5 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.1048, allocations: 51.92 kB / 399.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.1052, allocations: 33.55 kB / 399.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.1073, allocations: 1.963 MB / 401.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002895/0.1076, allocations: 0.7124 MB / 402.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.917e-05/0.1076, allocations: 21.42 kB / 402.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.26e-05/0.1077, allocations: 39.42 kB / 402.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1077, allocations: 0 / 402.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2671/0.3749, allocations: 2.697 MB / 405 MB, free: 8.238 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003178/0.3752, allocations: 233.9 kB / 405.2 MB, free: 7.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.806/2.181, allocations: 0 / 405.2 MB, free: 7.98 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)