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.0008287/0.0008289, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006032/0.006033, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.498/1.498, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05403/0.05403, allocations: 10.75 MB / 281.5 MB, free: 10.44 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.0004725/0.0004725, allocations: 12 kB / 342.3 MB, free: 23.39 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09307/0.09356, allocations: 50.02 MB / 392.3 MB, free: 5.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.001567/0.09515, allocations: 1.347 MB / 393.7 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005644/0.09573, allocations: 311 kB / 394 MB, free: 3.648 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.375e-05/0.09578, allocations: 7.938 kB / 394 MB, free: 3.641 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.85e-05/0.0958, allocations: 3.938 kB / 394 MB, free: 3.637 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.107e-05/0.09589, allocations: 11.88 kB / 394 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.09615, allocations: 75.86 kB / 394.1 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001585/0.09632, allocations: 119.7 kB / 394.2 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.324e-05/0.09642, allocations: 21.55 kB / 394.2 MB, free: 3.414 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.757e-05/0.09647, allocations: 47.72 kB / 394.3 MB, free: 3.367 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.292e-05/0.09655, allocations: 55.69 kB / 394.3 MB, free: 3.312 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.042e-05/0.09657, allocations: 4 kB / 394.3 MB, free: 3.309 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.39e-05/0.09665, allocations: 39.91 kB / 394.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.827e-05/0.09669, allocations: 35.84 kB / 394.4 MB, free: 3.234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.168e-05/0.09675, allocations: 77.36 kB / 394.5 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.09692, allocations: 131.8 kB / 394.6 MB, free: 3.023 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.09693, allocations: 0 / 394.6 MB, free: 3.023 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09694, allocations: 0 / 394.6 MB, free: 3.023 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.09695, allocations: 4 kB / 394.6 MB, free: 3.02 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.0004988/0.09745, allocations: 426.9 kB / 395 MB, free: 2.551 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.09749, allocations: 12.03 kB / 395 MB, free: 2.539 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.09754, allocations: 42.69 kB / 395.1 MB, free: 2.488 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.555e-05/0.09758, allocations: 16.75 kB / 395.1 MB, free: 2.473 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002001/0.09779, allocations: 231.8 kB / 395.3 MB, free: 2.207 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.056e-06/0.0978, allocations: 8.375 kB / 395.3 MB, free: 2.199 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.765e-05/0.09784, allocations: 16.36 kB / 395.4 MB, free: 2.184 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.09806, allocations: 130.5 kB / 395.5 MB, free: 2.035 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.09808, allocations: 7.875 kB / 395.5 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.0981, allocations: 4 kB / 395.5 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.09811, allocations: 4 kB / 395.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001335/0.09825, allocations: 55.91 kB / 395.6 MB, free: 1.965 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005722/0.09883, allocations: 412.5 kB / 396 MB, free: 1.512 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002061/0.09905, allocations: 118.6 kB / 396.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.09917, allocations: 64.84 kB / 396.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.09919, allocations: 0 / 396.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000219/0.09941, allocations: 115.3 kB / 396.2 MB, free: 1.195 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.253e-06/0.09942, allocations: 0 / 396.2 MB, free: 1.195 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.0003874/0.09982, allocations: 205.4 kB / 396.5 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.109e-05/0.09992, allocations: 162.2 kB / 396.6 MB, free: 0.793 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001575/0.1001, allocations: 198.1 kB / 396.8 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.1001, allocations: 25.7 kB / 396.8 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.791e-05/0.1002, allocations: 124 kB / 396.9 MB, free: 444 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.291e-05/0.1002, allocations: 39.45 kB / 397 MB, free: 404 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.978e-05/0.1003, allocations: 21.72 kB / 397 MB, free: 376 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1004, allocations: 334.8 kB / 397.3 MB, free: 32 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-05/0.1005, allocations: 40.03 kB / 397.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000124/0.1006, allocations: 113.3 kB / 397.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000194/0.1008, allocations: 137.9 kB / 397.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1008, allocations: 4 kB / 397.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003172/0.1012, allocations: 173.1 kB / 397.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.1012, allocations: 4 kB / 397.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1012, allocations: 4 kB / 397.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.1012, allocations: 0 / 397.8 MB, free: 15.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.1013, allocations: 36.05 kB / 397.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.1013, allocations: 8 kB / 397.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00015/0.1015, allocations: 23.83 kB / 397.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.001e-05/0.1015, allocations: 8 kB / 397.9 MB, free: 15.43 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.0001267/0.1016, allocations: 132.8 kB / 398 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.98e-05/0.1017, allocations: 19.84 kB / 398 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.941e-05/0.1017, allocations: 21.52 kB / 398 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.1017, allocations: 3.938 kB / 398 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.1017, allocations: 8 kB / 398.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1018, allocations: 0 / 398.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006477/0.1024, allocations: 470.4 kB / 398.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1024, allocations: 7.938 kB / 398.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.387e-05/0.1025, allocations: 19.98 kB / 398.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/0.1025, allocations: 3.938 kB / 398.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.1026, allocations: 8 kB / 398.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.108e-06/0.1026, allocations: 3.984 kB / 398.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1026, allocations: 0 / 398.6 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004227/0.103, allocations: 319.9 kB / 398.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.655e-05/0.1031, allocations: 96.88 kB / 399 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.642e-05/0.1031, allocations: 8.062 kB / 399 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001648/0.1033, allocations: 11.98 kB / 399 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.1033, allocations: 7.984 kB / 399 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.1033, allocations: 8 kB / 399 MB, free: 14.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.1034, allocations: 148.2 kB / 399.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1034, allocations: 0 / 399.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002523/0.1037, allocations: 32 kB / 399.2 MB, free: 14.04 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.0006933/0.1044, allocations: 0.8763 MB / 400.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000227/0.1046, allocations: 120.1 kB / 400.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1046, allocations: 0 / 400.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.1048, allocations: 55.92 kB / 400.2 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002894/0.105, allocations: 31.97 kB / 400.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.1074, allocations: 2.108 MB / 402.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.1077, allocations: 0.7128 MB / 403.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.623e-05/0.1077, allocations: 21.47 kB / 403.1 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.947e-05/0.1078, allocations: 47.42 kB / 403.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1078, allocations: 0 / 403.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2613/0.3691, allocations: 3.335 MB / 406.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003495/0.3695, allocations: 233.9 kB / 406.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.235, allocations: 3.75 kB / 406.7 MB, free: 6.41 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)