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.001193/0.001192, allocations: 100 kB / 15.05 MB, free: 1.105 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.001384/0.001384, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.704/1.704, allocations: 205.4 MB / 222.1 MB, free: 5.883 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05523/0.05523, allocations: 10.73 MB / 281.1 MB, free: 10.8 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.0005082/0.0005083, allocations: 14.97 kB / 341.7 MB, free: 23.82 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1111, allocations: 50.01 MB / 391.7 MB, free: 5.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.002361/0.1135, allocations: 1.312 MB / 393 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007585/0.1143, allocations: 303.1 kB / 393.3 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.012e-05/0.1144, allocations: 4 kB / 393.3 MB, free: 4.121 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.753e-05/0.1144, allocations: 3.938 kB / 393.3 MB, free: 4.117 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001397/0.1146, allocations: 19.91 kB / 393.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.115, allocations: 75.78 kB / 393.4 MB, free: 4.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002107/0.1152, allocations: 71.86 kB / 393.5 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.1154, allocations: 21.53 kB / 393.5 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.309e-05/0.1155, allocations: 47.78 kB / 393.5 MB, free: 3.887 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001227/0.1156, allocations: 55.73 kB / 393.6 MB, free: 3.832 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.71e-05/0.1156, allocations: 8 kB / 393.6 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.474e-05/0.1158, allocations: 31.91 kB / 393.6 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.499e-05/0.1158, allocations: 27.91 kB / 393.7 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.036e-05/0.1159, allocations: 45.64 kB / 393.7 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.116, allocations: 88.09 kB / 393.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.116, allocations: 0 / 393.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.1161, allocations: 0 / 393.8 MB, free: 3.629 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1161, allocations: 4 kB / 393.8 MB, free: 3.625 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.0007081/0.1168, allocations: 426.7 kB / 394.2 MB, free: 3.16 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.163e-05/0.1169, allocations: 12.03 kB / 394.2 MB, free: 3.148 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.08e-05/0.1169, allocations: 42.48 kB / 394.3 MB, free: 3.098 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.857e-05/0.117, allocations: 23.7 kB / 394.3 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.1173, allocations: 226.7 kB / 394.5 MB, free: 2.812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.1173, allocations: 8 kB / 394.5 MB, free: 2.805 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/0.1174, allocations: 8 kB / 394.5 MB, free: 2.797 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000282/0.1176, allocations: 137.9 kB / 394.7 MB, free: 2.641 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1177, allocations: 0 / 394.7 MB, free: 2.641 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.998e-05/0.1177, allocations: 4 kB / 394.7 MB, free: 2.637 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.1177, allocations: 4 kB / 394.7 MB, free: 2.633 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000156/0.1179, allocations: 55.97 kB / 394.7 MB, free: 2.578 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007549/0.1186, allocations: 416.5 kB / 395.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002357/0.1189, allocations: 114.6 kB / 395.2 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.1189, allocations: 0 / 395.2 MB, free: 2 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002886/0.1192, allocations: 115.2 kB / 395.4 MB, free: 1.875 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.1192, allocations: 3.938 kB / 395.4 MB, free: 1.871 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004898/0.1197, allocations: 205.8 kB / 395.6 MB, free: 1.664 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/0.1198, allocations: 162.2 kB / 395.7 MB, free: 1.469 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.1201, allocations: 190.1 kB / 395.9 MB, free: 1.273 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.235e-05/0.1201, allocations: 33.7 kB / 395.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1202, allocations: 120.1 kB / 396.1 MB, free: 1.113 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.911e-05/0.1203, allocations: 43.34 kB / 396.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.1203, allocations: 4 kB / 396.1 MB, free: 1.066 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1205, allocations: 330.8 kB / 396.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.491e-05/0.1206, allocations: 40.34 kB / 396.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.1208, allocations: 118 kB / 396.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.1209, allocations: 44 kB / 396.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.1209, allocations: 0 / 396.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003239/0.1212, allocations: 181.3 kB / 396.8 MB, free: 328 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.1213, allocations: 4 kB / 396.8 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.1213, allocations: 11.89 kB / 396.8 MB, free: 312 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/0.1213, allocations: 4 kB / 396.8 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.1215, allocations: 27.98 kB / 396.8 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.1215, allocations: 7.922 kB / 396.9 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001552/0.1217, allocations: 24.12 kB / 396.9 MB, free: 248 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.1217, allocations: 8 kB / 396.9 MB, free: 240 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,$PRE.ll_dig_BE.y,ll_dig_BE.y,$PRE.ll_dig_FE.y,ll_dig_FE.y,$PRE.ll_dig_TU.y,ll_dig_TU.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.1219, allocations: 128.5 kB / 397 MB, free: 104 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.697e-05/0.1219, allocations: 15.81 kB / 397 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.37e-05/0.122, allocations: 17.53 kB / 397 MB, free: 76 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.122, allocations: 7.953 kB / 397 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.122, allocations: 0 / 397 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.122, allocations: 12.02 kB / 397.1 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000591/0.1226, allocations: 474.3 kB / 397.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1226, allocations: 0 / 397.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.1227, allocations: 19.98 kB / 397.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.1228, allocations: 7.953 kB / 397.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.1228, allocations: 4 kB / 397.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.1228, allocations: 4 kB / 397.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1228, allocations: 0 / 397.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005082/0.1233, allocations: 319.2 kB / 397.9 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.191e-05/0.1234, allocations: 88.95 kB / 398 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.206e-05/0.1235, allocations: 15.94 kB / 398 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001577/0.1236, allocations: 12.06 kB / 398 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.812e-05/0.1237, allocations: 7.984 kB / 398 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.1237, allocations: 7.984 kB / 398 MB, free: 15.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001356/0.1239, allocations: 140.3 kB / 398.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1239, allocations: 0 / 398.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002887/0.1242, allocations: 35.98 kB / 398.2 MB, free: 14.85 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008965/0.1251, allocations: 0.8646 MB / 399 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003178/0.1254, allocations: 120.2 kB / 399.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1254, allocations: 3.938 kB / 399.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.1255, allocations: 55.98 kB / 399.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.1259, allocations: 36.09 kB / 399.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002442/0.1283, allocations: 1.86 MB / 401.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.1287, allocations: 0.7245 MB / 401.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.895e-05/0.1288, allocations: 17.48 kB / 401.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.465e-05/0.1289, allocations: 47.42 kB / 401.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1289, allocations: 0 / 401.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01771/0.1467, allocations: 3.252 MB / 405.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003141/0.1471, allocations: 215.7 kB / 405.4 MB, free: 7.602 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/1.969, allocations: 0 / 405.4 MB, free: 7.602 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/linux/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) Environment - environmentSimulation: