Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.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.BasicComparisonLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonLL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonLL",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.001179/0.001179, 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.00122/0.00122, allocations: 194.5 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.451/1.451, 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.05669/0.05669, 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.00151/0.001511, allocations: 71.89 kB / 340.6 MB, free: 23.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1052, allocations: 49.01 MB / 389.7 MB, free: 6.16 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.003072/0.1083, allocations: 1.632 MB / 391.3 MB, free: 4.508 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008414/0.1092, allocations: 322.9 kB / 391.6 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.763e-05/0.1093, allocations: 0 / 391.6 MB, free: 4.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.909e-05/0.1093, allocations: 11.81 kB / 391.6 MB, free: 4.18 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.1095, allocations: 15.8 kB / 391.6 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000485/0.11, allocations: 91.77 kB / 391.7 MB, free: 4.074 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002026/0.1102, allocations: 123.7 kB / 391.8 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.1103, allocations: 21.55 kB / 391.9 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.967e-05/0.1104, allocations: 55.72 kB / 391.9 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.1105, allocations: 71.61 kB / 392 MB, free: 3.809 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.1105, allocations: 12 kB / 392 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.777e-05/0.1107, allocations: 43.97 kB / 392 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.937e-05/0.1107, allocations: 27.86 kB / 392.1 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.574e-05/0.1108, allocations: 63.64 kB / 392.1 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.111, allocations: 135.8 kB / 392.3 MB, free: 3.531 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.111, allocations: 0 / 392.3 MB, free: 3.531 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.407e-06/0.111, allocations: 0 / 392.3 MB, free: 3.531 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.111, allocations: 3.938 kB / 392.3 MB, free: 3.527 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000838/0.1119, allocations: 458.7 kB / 392.7 MB, free: 3.027 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.896e-05/0.1119, allocations: 15.89 kB / 392.7 MB, free: 3.012 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.038e-05/0.112, allocations: 34.75 kB / 392.8 MB, free: 2.969 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.393e-05/0.112, allocations: 24.75 kB / 392.8 MB, free: 2.945 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.1123, allocations: 223.9 kB / 393 MB, free: 2.688 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.1123, allocations: 8.312 kB / 393 MB, free: 2.68 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.1124, allocations: 12.36 kB / 393 MB, free: 2.668 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000285/0.1127, allocations: 142.3 kB / 393.2 MB, free: 2.512 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1127, allocations: 3.938 kB / 393.2 MB, free: 2.508 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.78e-05/0.1127, allocations: 4 kB / 393.2 MB, free: 2.504 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.1127, allocations: 4 kB / 393.2 MB, free: 2.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001505/0.1129, allocations: 51.91 kB / 393.2 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007092/0.1136, allocations: 412.5 kB / 393.6 MB, free: 1.996 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002747/0.1139, allocations: 118.6 kB / 393.7 MB, free: 1.871 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001188/0.114, allocations: 60.84 kB / 393.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.482e-05/0.114, allocations: 0 / 393.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003119/0.1144, allocations: 107.3 kB / 393.9 MB, free: 1.691 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.432e-06/0.1144, allocations: 7.938 kB / 393.9 MB, free: 1.684 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005071/0.1149, allocations: 193.4 kB / 394.1 MB, free: 1.488 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001574/0.1151, allocations: 162.2 kB / 394.3 MB, free: 1.293 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002086/0.1153, allocations: 190.2 kB / 394.5 MB, free: 1.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.865e-05/0.1153, allocations: 29.7 kB / 394.5 MB, free: 1.062 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.1154, allocations: 124 kB / 394.6 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.7e-05/0.1155, allocations: 43.44 kB / 394.6 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.478e-05/0.1156, allocations: 41.7 kB / 394.7 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.1158, allocations: 330.8 kB / 395 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.077e-05/0.1159, allocations: 35.98 kB / 395 MB, free: 492 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.116, allocations: 117.3 kB / 395.2 MB, free: 340 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002211/0.1163, allocations: 129.9 kB / 395.3 MB, free: 188 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1163, allocations: 4 kB / 395.3 MB, free: 184 kB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002881/0.1166, allocations: 161.3 kB / 395.4 MB, free: 16 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.1166, allocations: 8 kB / 395.5 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.1166, allocations: 0 / 395.5 MB, free: 8 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.1166, allocations: 7.938 kB / 395.5 MB, free: 0 / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.1168, allocations: 31.92 kB / 395.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1168, allocations: 4 kB / 395.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001567/0.117, allocations: 24.02 kB / 395.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.117, allocations: 8 kB / 395.5 MB, free: 15.93 MB / 302.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,ll_dig_TU.y,$PRE.ll_dig_TU.y,ll_dig_FE.y,$PRE.ll_dig_FE.y,ll_dig_BE.y,$PRE.ll_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001226/0.1171, allocations: 128.6 kB / 395.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/0.1172, allocations: 15.81 kB / 395.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.342e-05/0.1172, allocations: 21.52 kB / 395.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1172, allocations: 7.938 kB / 395.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1172, allocations: 0 / 395.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1173, allocations: 0 / 395.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004762/0.1177, allocations: 478.2 kB / 396.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1177, allocations: 0 / 396.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.1179, allocations: 19.94 kB / 396.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1179, allocations: 0 / 396.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.1179, allocations: 7.984 kB / 396.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1179, allocations: 0 / 396.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.367e-06/0.1179, allocations: 4 kB / 396.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004202/0.1183, allocations: 319.9 kB / 396.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.804e-05/0.1184, allocations: 92.89 kB / 396.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.804e-05/0.1184, allocations: 3.938 kB / 396.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.1186, allocations: 15.98 kB / 396.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.503e-05/0.1187, allocations: 11.92 kB / 396.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.1187, allocations: 8 kB / 396.6 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001153/0.1188, allocations: 144.3 kB / 396.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1188, allocations: 0 / 396.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002748/0.1191, allocations: 35.94 kB / 396.8 MB, free: 14.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (ll.dy) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,ll_dig_BE.y,ll_dig_FE.y,ll_dig_TU.y) * Number of discrete states: 6 (ll_dig_TU.u,ll_dig_TU.y,ll_dig_FE.u,ll_dig_FE.y,ll_dig_BE.u,ll_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * 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.0008079/0.1199, allocations: 0.8763 MB / 397.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002811/0.1202, allocations: 112 kB / 397.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1202, allocations: 0 / 397.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000122/0.1203, allocations: 55.92 kB / 397.9 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003422/0.1207, allocations: 41.62 kB / 397.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002415/0.1231, allocations: 2.057 MB / 400 MB, free: 11.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003232/0.1235, allocations: 0.7086 MB / 400.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.545e-05/0.1235, allocations: 25.53 kB / 400.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.1236, allocations: 39.42 kB / 400.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1236, allocations: 0 / 400.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01942/0.143, allocations: 3.623 MB / 404.3 MB, free: 6.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.606/7.749, allocations: 16.11 kB / 404.4 MB, free: 6.891 MB / 302.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonLL_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonLL.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe 2>&1)