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.001524/0.001524, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.581/1.581, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05935/0.05935, allocations: 10.74 MB / 280.5 MB, free: 10.5 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.001424/0.001424, allocations: 63.91 kB / 340.7 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1027, allocations: 49.01 MB / 389.7 MB, free: 6.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003728/0.1065, allocations: 1.582 MB / 391.2 MB, free: 4.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005976/0.1071, allocations: 259.1 kB / 391.5 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.381e-05/0.1072, allocations: 4 kB / 391.5 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.78e-05/0.1073, allocations: 11.86 kB / 391.5 MB, free: 4.281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001203/0.1074, allocations: 11.81 kB / 391.5 MB, free: 4.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003564/0.1078, allocations: 71.8 kB / 391.6 MB, free: 4.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001863/0.108, allocations: 99.7 kB / 391.7 MB, free: 4.102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.1081, allocations: 33.41 kB / 391.7 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.834e-05/0.1082, allocations: 35.8 kB / 391.8 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.12e-05/0.1083, allocations: 55.69 kB / 391.8 MB, free: 3.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.1083, allocations: 8 kB / 391.8 MB, free: 3.973 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.323e-05/0.1084, allocations: 31.98 kB / 391.8 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.632e-05/0.1085, allocations: 23.86 kB / 391.9 MB, free: 3.918 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.343e-05/0.1086, allocations: 51.72 kB / 391.9 MB, free: 3.867 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001921/0.1088, allocations: 107.6 kB / 392 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1088, allocations: 0 / 392 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1088, allocations: 4 kB / 392 MB, free: 3.758 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1088, allocations: 0 / 392 MB, free: 3.758 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.0007028/0.1095, allocations: 431.1 kB / 392.5 MB, free: 3.285 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.1096, allocations: 11.89 kB / 392.5 MB, free: 3.273 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.1096, allocations: 38.69 kB / 392.5 MB, free: 3.227 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.851e-05/0.1097, allocations: 24.73 kB / 392.5 MB, free: 3.203 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.1099, allocations: 208.8 kB / 392.7 MB, free: 2.961 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.1099, allocations: 4.375 kB / 392.7 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.46e-05/0.11, allocations: 12.38 kB / 392.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002157/0.1102, allocations: 94 kB / 392.8 MB, free: 2.852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.1102, allocations: 3.938 kB / 392.8 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.1102, allocations: 0 / 392.8 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.1102, allocations: 0 / 392.8 MB, free: 2.848 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.1104, allocations: 51.91 kB / 392.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007084/0.1111, allocations: 384.5 kB / 393.3 MB, free: 2.371 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.1113, allocations: 106.6 kB / 393.4 MB, free: 2.258 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1114, allocations: 56.78 kB / 393.4 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.1115, allocations: 0 / 393.4 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003045/0.1118, allocations: 111.3 kB / 393.5 MB, free: 2.078 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.693e-06/0.1118, allocations: 3.938 kB / 393.5 MB, free: 2.074 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.000414/0.1122, allocations: 181.4 kB / 393.7 MB, free: 1.891 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.477e-05/0.1123, allocations: 55.41 kB / 393.8 MB, free: 1.824 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001887/0.1125, allocations: 172.5 kB / 393.9 MB, free: 1.645 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.1125, allocations: 29.7 kB / 394 MB, free: 1.609 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.21e-05/0.1126, allocations: 120 kB / 394.1 MB, free: 1.488 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.387e-05/0.1126, allocations: 27.62 kB / 394.1 MB, free: 1.461 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.227e-05/0.1127, allocations: 37.7 kB / 394.2 MB, free: 1.418 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.1128, allocations: 326.8 kB / 394.5 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.878e-05/0.1129, allocations: 35.97 kB / 394.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.113, allocations: 89.39 kB / 394.6 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.1132, allocations: 125.9 kB / 394.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1132, allocations: 4 kB / 394.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002478/0.1134, allocations: 153.3 kB / 394.9 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.1135, allocations: 7.938 kB / 394.9 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1135, allocations: 4 kB / 394.9 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1135, allocations: 0 / 394.9 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.1136, allocations: 27.98 kB / 394.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.1136, allocations: 4.188 kB / 394.9 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.993e-05/0.1137, allocations: 19.84 kB / 394.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.151e-05/0.1137, allocations: 4 kB / 394.9 MB, free: 0.5781 MB / 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.0001154/0.1139, allocations: 132.5 kB / 395.1 MB, free: 452 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.1139, allocations: 19.8 kB / 395.1 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.091e-05/0.1139, allocations: 13.53 kB / 395.1 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1139, allocations: 4 kB / 395.1 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.114, allocations: 0 / 395.1 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.114, allocations: 0 / 395.1 MB, free: 416 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005097/0.1145, allocations: 451 kB / 395.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1145, allocations: 0 / 395.5 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.291e-05/0.1146, allocations: 15.98 kB / 395.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1146, allocations: 4 kB / 395.6 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.1146, allocations: 8 kB / 395.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1146, allocations: 0 / 395.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.1146, allocations: 3.938 kB / 395.6 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004474/0.1151, allocations: 303.4 kB / 395.9 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.844e-05/0.1152, allocations: 92.97 kB / 396 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.1152, allocations: 8 kB / 396 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.393e-05/0.1153, allocations: 3.984 kB / 396 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.1153, allocations: 11.88 kB / 396 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.1154, allocations: 11.98 kB / 396 MB, free: 15.42 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.1155, allocations: 124 kB / 396.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1155, allocations: 4 kB / 396.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002866/0.1158, allocations: 24 kB / 396.1 MB, free: 15.27 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.0007472/0.1165, allocations: 0.8294 MB / 397 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002547/0.1168, allocations: 111.9 kB / 397.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1168, allocations: 0 / 397.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001062/0.1169, allocations: 55.88 kB / 397.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.1173, allocations: 31.86 kB / 397.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.1194, allocations: 1.919 MB / 399.1 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002859/0.1197, allocations: 0.7085 MB / 399.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.71e-05/0.1198, allocations: 17.42 kB / 399.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.85e-05/0.1198, allocations: 35.42 kB / 399.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1198, allocations: 4 kB / 399.9 MB, free: 11.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02127/0.1411, allocations: 2.959 MB / 402.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.587/7.728, allocations: 11.78 kB / 402.8 MB, free: 8.477 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)