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.001513/0.001513, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001559/0.001559, allocations: 191.8 kB / 16.25 MB, free: 6.621 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.536/1.536, allocations: 205.1 MB / 222.1 MB, free: 4.684 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05823/0.05823, allocations: 10.74 MB / 280.2 MB, free: 10.68 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.001545/0.001545, allocations: 67.91 kB / 340.1 MB, free: 23.58 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1102, allocations: 49.01 MB / 389.2 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.002778/0.113, allocations: 1.681 MB / 390.8 MB, free: 4.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006003/0.1136, allocations: 318.9 kB / 391.1 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.417e-05/0.1137, allocations: 8 kB / 391.2 MB, free: 4.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.406e-05/0.1138, allocations: 7.875 kB / 391.2 MB, free: 4.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001055/0.1139, allocations: 7.875 kB / 391.2 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003521/0.1142, allocations: 87.84 kB / 391.3 MB, free: 4.387 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001823/0.1144, allocations: 123.7 kB / 391.4 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.1145, allocations: 21.56 kB / 391.4 MB, free: 4.246 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.986e-05/0.1146, allocations: 59.7 kB / 391.5 MB, free: 4.188 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.977e-05/0.1147, allocations: 67.61 kB / 391.5 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.395e-05/0.1147, allocations: 12 kB / 391.5 MB, free: 4.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.84e-05/0.1148, allocations: 39.97 kB / 391.6 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.534e-05/0.1149, allocations: 27.92 kB / 391.6 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.085e-05/0.1149, allocations: 63.58 kB / 391.7 MB, free: 3.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001866/0.1151, allocations: 135.8 kB / 391.8 MB, free: 3.848 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1151, allocations: 4 kB / 391.8 MB, free: 3.844 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.1151, allocations: 0 / 391.8 MB, free: 3.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1152, allocations: 0 / 391.8 MB, free: 3.844 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.0006317/0.1158, allocations: 454.7 kB / 392.2 MB, free: 3.348 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.1159, allocations: 11.89 kB / 392.3 MB, free: 3.336 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.671e-05/0.1159, allocations: 46.67 kB / 392.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.702e-05/0.116, allocations: 16.75 kB / 392.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.1162, allocations: 231.9 kB / 392.5 MB, free: 3 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.037e-05/0.1162, allocations: 4.375 kB / 392.5 MB, free: 2.996 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.1163, allocations: 12.38 kB / 392.6 MB, free: 2.984 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002668/0.1165, allocations: 130.4 kB / 392.7 MB, free: 2.836 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.709e-06/0.1166, allocations: 7.938 kB / 392.7 MB, free: 2.828 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.603e-05/0.1166, allocations: 4 kB / 392.7 MB, free: 2.824 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1166, allocations: 0 / 392.7 MB, free: 2.824 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.1167, allocations: 55.97 kB / 392.8 MB, free: 2.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00065/0.1174, allocations: 412.4 kB / 393.2 MB, free: 2.316 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.1176, allocations: 114.6 kB / 393.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001136/0.1178, allocations: 64.77 kB / 393.3 MB, free: 2.129 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.1178, allocations: 4 kB / 393.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.118, allocations: 111.3 kB / 393.4 MB, free: 2.004 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.118, allocations: 0 / 393.4 MB, free: 2.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004391/0.1185, allocations: 201.5 kB / 393.6 MB, free: 1.801 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.1186, allocations: 158.2 kB / 393.8 MB, free: 1.609 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.1188, allocations: 190.2 kB / 394 MB, free: 1.414 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.525e-05/0.1188, allocations: 33.7 kB / 394 MB, free: 1.375 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.088e-05/0.1189, allocations: 120 kB / 394.1 MB, free: 1.254 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.533e-05/0.1189, allocations: 43.44 kB / 394.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.076e-05/0.119, allocations: 41.7 kB / 394.2 MB, free: 1.164 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1192, allocations: 330.8 kB / 394.5 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.479e-05/0.1192, allocations: 43.92 kB / 394.6 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.1194, allocations: 110.5 kB / 394.7 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002131/0.1196, allocations: 137.9 kB / 394.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1196, allocations: 0 / 394.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000272/0.1199, allocations: 173.1 kB / 395 MB, free: 328 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1199, allocations: 4 kB / 395 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.12, allocations: 4 kB / 395 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/0.12, allocations: 7.938 kB / 395 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.1201, allocations: 31.92 kB / 395 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.1201, allocations: 0 / 395 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.1203, allocations: 27.83 kB / 395.1 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.295e-05/0.1203, allocations: 8 kB / 395.1 MB, free: 244 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,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.0001242/0.1205, allocations: 127.1 kB / 395.2 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.1205, allocations: 15.81 kB / 395.2 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.492e-05/0.1206, allocations: 21.52 kB / 395.2 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.1206, allocations: 7.875 kB / 395.2 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1206, allocations: 0 / 395.2 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1206, allocations: 4 kB / 395.2 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005794/0.1212, allocations: 466.3 kB / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.1212, allocations: 3.984 kB / 395.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.1213, allocations: 23.94 kB / 395.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1213, allocations: 3.938 kB / 395.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/0.1213, allocations: 7.984 kB / 395.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1214, allocations: 0 / 395.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1214, allocations: 0 / 395.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004816/0.1218, allocations: 315.3 kB / 396 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.729e-05/0.1219, allocations: 96.83 kB / 396.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.122, allocations: 4 kB / 396.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.1221, allocations: 15.92 kB / 396.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.986e-05/0.1222, allocations: 11.98 kB / 396.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.1222, allocations: 4 kB / 396.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001157/0.1223, allocations: 144.3 kB / 396.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1223, allocations: 0 / 396.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002788/0.1226, allocations: 32.06 kB / 396.3 MB, free: 14.87 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.0008201/0.1234, allocations: 0.8652 MB / 397.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002878/0.1237, allocations: 128.3 kB / 397.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1238, allocations: 0 / 397.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.1239, allocations: 55.92 kB / 397.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003398/0.1242, allocations: 35.95 kB / 397.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.1268, allocations: 2.088 MB / 399.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.1271, allocations: 0.7125 MB / 400.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.635e-05/0.1272, allocations: 33.5 kB / 400.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.253e-05/0.1273, allocations: 39.42 kB / 400.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1273, allocations: 0 / 400.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01799/0.1453, allocations: 3.519 MB / 403.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000252/0.1456, allocations: 238.2 kB / 404.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.947/2.093, allocations: 7.594 kB / 404.1 MB, free: 7.062 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)