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.001212/0.001212, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001022/0.001022, allocations: 196.8 kB / 16.14 MB, free: 6.715 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.366/1.366, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05533/0.05533, allocations: 10.74 MB / 280.1 MB, free: 10.72 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.001399/0.001399, allocations: 67.91 kB / 339.9 MB, free: 23.69 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09883, allocations: 49.02 MB / 389 MB, free: 6.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.003085/0.102, allocations: 1.639 MB / 390.6 MB, free: 4.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000581/0.1026, allocations: 271.1 kB / 390.9 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.311e-05/0.1026, allocations: 0 / 390.9 MB, free: 4.688 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.165e-05/0.1027, allocations: 3.938 kB / 390.9 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.59e-05/0.1028, allocations: 11.88 kB / 390.9 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.1031, allocations: 63.88 kB / 391 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001683/0.1032, allocations: 95.7 kB / 391 MB, free: 4.516 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.1034, allocations: 13.45 kB / 391.1 MB, free: 4.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.544e-05/0.1034, allocations: 47.77 kB / 391.1 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.754e-05/0.1035, allocations: 43.72 kB / 391.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.995e-05/0.1035, allocations: 12 kB / 391.2 MB, free: 4.402 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.895e-05/0.1036, allocations: 27.97 kB / 391.2 MB, free: 4.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.065e-05/0.1037, allocations: 23.91 kB / 391.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.054e-05/0.1037, allocations: 43.67 kB / 391.3 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.1039, allocations: 103.6 kB / 391.4 MB, free: 4.207 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1039, allocations: 4 kB / 391.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1039, allocations: 0 / 391.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1039, allocations: 0 / 391.4 MB, free: 4.203 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.0007442/0.1047, allocations: 434.8 kB / 391.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.1047, allocations: 8.031 kB / 391.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.887e-05/0.1048, allocations: 38.75 kB / 391.8 MB, free: 3.676 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.507e-05/0.1048, allocations: 12.75 kB / 391.8 MB, free: 3.664 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.1051, allocations: 220.7 kB / 392.1 MB, free: 3.41 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.528e-06/0.1052, allocations: 4.375 kB / 392.1 MB, free: 3.406 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.892e-05/0.1052, allocations: 8.375 kB / 392.1 MB, free: 3.398 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.1054, allocations: 86.2 kB / 392.2 MB, free: 3.309 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1054, allocations: 3.938 kB / 392.2 MB, free: 3.305 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.1054, allocations: 4 kB / 392.2 MB, free: 3.301 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.1054, allocations: 11.94 kB / 392.2 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001341/0.1056, allocations: 43.97 kB / 392.2 MB, free: 3.246 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006496/0.1062, allocations: 380.5 kB / 392.6 MB, free: 2.824 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002148/0.1065, allocations: 102.6 kB / 392.7 MB, free: 2.715 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001078/0.1066, allocations: 56.83 kB / 392.7 MB, free: 2.656 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.1066, allocations: 7.922 kB / 392.8 MB, free: 2.648 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.1068, allocations: 111.3 kB / 392.9 MB, free: 2.527 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.422e-06/0.1069, allocations: 0 / 392.9 MB, free: 2.527 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004163/0.1073, allocations: 185.5 kB / 393 MB, free: 2.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.624e-05/0.1073, allocations: 51.41 kB / 393.1 MB, free: 2.277 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.1075, allocations: 171.3 kB / 393.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.279e-05/0.1075, allocations: 33.7 kB / 393.3 MB, free: 2.059 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.614e-05/0.1076, allocations: 123.9 kB / 393.4 MB, free: 1.934 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.728e-05/0.1076, allocations: 27.61 kB / 393.4 MB, free: 1.906 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.48e-05/0.1077, allocations: 41.7 kB / 393.5 MB, free: 1.859 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1079, allocations: 326.8 kB / 393.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.912e-05/0.1079, allocations: 35.98 kB / 393.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.1081, allocations: 81.94 kB / 393.9 MB, free: 1.395 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001953/0.1083, allocations: 129.9 kB / 394 MB, free: 1.246 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1083, allocations: 0 / 394 MB, free: 1.246 MB / 286.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002819/0.1086, allocations: 153.4 kB / 394.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1086, allocations: 11.98 kB / 394.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.1086, allocations: 0 / 394.2 MB, free: 1.078 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.1086, allocations: 4 kB / 394.2 MB, free: 1.074 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001389/0.1088, allocations: 31.92 kB / 394.2 MB, free: 1.043 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.1088, allocations: 4 kB / 394.2 MB, free: 1.039 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.718e-05/0.1088, allocations: 11.84 kB / 394.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.1089, allocations: 12 kB / 394.3 MB, free: 1.016 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.0001121/0.109, allocations: 132.7 kB / 394.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.485e-05/0.109, allocations: 15.81 kB / 394.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.264e-05/0.1091, allocations: 17.52 kB / 394.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1091, allocations: 0 / 394.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1091, allocations: 0 / 394.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1091, allocations: 0 / 394.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005073/0.1096, allocations: 443 kB / 394.9 MB, free: 368 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1096, allocations: 7.938 kB / 394.9 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.8e-05/0.1097, allocations: 19.94 kB / 394.9 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1097, allocations: 0 / 394.9 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.997e-05/0.1098, allocations: 11.98 kB / 394.9 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1098, allocations: 0 / 394.9 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1098, allocations: 3.938 kB / 394.9 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004293/0.1102, allocations: 287.4 kB / 395.2 MB, free: 20 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.522e-05/0.1103, allocations: 93.09 kB / 395.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.929e-05/0.1103, allocations: 12 kB / 395.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.269e-05/0.1104, allocations: 0 / 395.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.226e-05/0.1105, allocations: 15.92 kB / 395.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.677e-06/0.1105, allocations: 4 kB / 395.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.097e-05/0.1106, allocations: 127.9 kB / 395.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.1106, allocations: 0 / 395.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002557/0.1109, allocations: 27.94 kB / 395.5 MB, free: 15.73 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.000725/0.1116, allocations: 0.8372 MB / 396.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002294/0.1118, allocations: 107.8 kB / 396.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1118, allocations: 448 / 396.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.112, allocations: 55.92 kB / 396.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.1123, allocations: 33.55 kB / 396.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.1145, allocations: 1.948 MB / 398.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.1148, allocations: 0.7124 MB / 399.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.375e-05/0.1149, allocations: 13.42 kB / 399.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.801e-05/0.1149, allocations: 35.42 kB / 399.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1149, allocations: 0 / 399.2 MB, free: 11.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02999/0.1449, allocations: 2.785 MB / 402 MB, free: 9.113 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002605/0.1452, allocations: 234.3 kB / 402.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.714/1.859, allocations: 7.438 kB / 402.2 MB, free: 8.855 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)