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.01066/0.01066, allocations: 98.55 kB / 15.73 MB, free: 6.012 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.002027/0.002027, allocations: 196.5 kB / 16.67 MB, free: 5.93 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.694/1.694, allocations: 205.1 MB / 222.6 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.06557/0.06557, allocations: 10.76 MB / 280.7 MB, free: 10.38 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.002245/0.002245, allocations: 78.7 kB / 390.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.326, allocations: 49.03 MB / 439.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL): time 0.002612/0.3286, allocations: 1.62 MB / 441 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006721/0.3293, allocations: 315.5 kB / 441.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.881e-05/0.3294, allocations: 5.094 kB / 441.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.437e-05/0.3294, allocations: 12.52 kB / 441.3 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001173/0.3295, allocations: 21.77 kB / 441.3 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004237/0.33, allocations: 87.22 kB / 441.4 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002354/0.3302, allocations: 129.8 kB / 441.6 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.3303, allocations: 18.84 kB / 441.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.031e-05/0.3304, allocations: 56.36 kB / 441.6 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001034/0.3305, allocations: 63.14 kB / 441.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.938e-05/0.3305, allocations: 11.38 kB / 441.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.281e-05/0.3306, allocations: 41.44 kB / 441.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.734e-05/0.3307, allocations: 39.09 kB / 441.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.796e-05/0.3307, allocations: 60.94 kB / 441.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.3309, allocations: 146.4 kB / 442 MB, free: 3.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3309, allocations: 0 / 442 MB, free: 3.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3309, allocations: 0 / 442 MB, free: 3.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.3309, allocations: 5.906 kB / 442 MB, free: 3.359 MB / 318.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.0006222/0.3316, allocations: 455 kB / 442.4 MB, free: 2.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.3316, allocations: 18.67 kB / 442.4 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.815e-05/0.3317, allocations: 39.06 kB / 442.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.515e-05/0.3317, allocations: 17.53 kB / 442.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002305/0.3319, allocations: 228.7 kB / 442.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.332, allocations: 9.203 kB / 442.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/0.332, allocations: 6.625 kB / 442.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.3323, allocations: 140.4 kB / 442.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.3323, allocations: 3.938 kB / 442.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.751e-05/0.3323, allocations: 1.375 kB / 442.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.3323, allocations: 2.75 kB / 442.9 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.3325, allocations: 52.47 kB / 442.9 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007173/0.3332, allocations: 411.6 kB / 443.3 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002733/0.3335, allocations: 105.9 kB / 443.4 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001242/0.3336, allocations: 59.58 kB / 443.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.965e-05/0.3336, allocations: 2.234 kB / 443.5 MB, free: 2.102 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003197/0.3339, allocations: 112.9 kB / 443.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.3339, allocations: 0 / 443.6 MB, free: 2.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005092/0.3344, allocations: 197.5 kB / 443.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/0.3345, allocations: 163.2 kB / 444 MB, free: 1.754 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001927/0.3347, allocations: 189.4 kB / 444.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.3347, allocations: 32.16 kB / 444.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.371e-05/0.3348, allocations: 115.1 kB / 444.3 MB, free: 1.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.85e-05/0.3348, allocations: 49.41 kB / 444.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.436e-05/0.3349, allocations: 47.62 kB / 444.4 MB, free: 1.406 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.455e-05/0.335, allocations: 332 kB / 444.7 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.894e-05/0.3351, allocations: 33.42 kB / 444.7 MB, free: 1.074 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001393/0.3352, allocations: 116.2 kB / 444.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002091/0.3354, allocations: 131.4 kB / 445 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3354, allocations: 1.219 kB / 445 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003378/0.3358, allocations: 170.4 kB / 445.2 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.3358, allocations: 5.984 kB / 445.2 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.3358, allocations: 1.625 kB / 445.2 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.3358, allocations: 6.719 kB / 445.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.336, allocations: 29.17 kB / 445.2 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.336, allocations: 9.938 kB / 445.2 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.3362, allocations: 23.58 kB / 445.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.3362, allocations: 5.312 kB / 445.2 MB, free: 0.7617 MB / 318.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.0001256/0.3363, allocations: 132.3 kB / 445.4 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.538e-05/0.3364, allocations: 16.16 kB / 445.4 MB, free: 0.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.343e-05/0.3364, allocations: 19.64 kB / 445.4 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.3364, allocations: 6.844 kB / 445.4 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3364, allocations: 4 kB / 445.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.3364, allocations: 5.484 kB / 445.4 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000619/0.3371, allocations: 468.5 kB / 445.9 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.3371, allocations: 2.016 kB / 445.9 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.3372, allocations: 21.41 kB / 445.9 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.688e-05/0.3372, allocations: 1.25 kB / 445.9 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.923e-05/0.3372, allocations: 3.594 kB / 445.9 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.3372, allocations: 0 / 445.9 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3372, allocations: 1.844 kB / 445.9 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004413/0.3376, allocations: 315.6 kB / 446.2 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.026e-05/0.3377, allocations: 99.14 kB / 446.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.3378, allocations: 7.391 kB / 446.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.3379, allocations: 8.922 kB / 446.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.661e-05/0.338, allocations: 11.77 kB / 446.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.345e-05/0.338, allocations: 9.609 kB / 446.3 MB, free: 15.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002045/0.3382, allocations: 140.4 kB / 446.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.3382, allocations: 0 / 446.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003176/0.3385, allocations: 36.8 kB / 446.5 MB, free: 15.8 MB / 334.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.001052/0.3396, allocations: 0.8725 MB / 447.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003597/0.3399, allocations: 114.7 kB / 447.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.3399, allocations: 1.188 kB / 447.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000134/0.3401, allocations: 48.27 kB / 447.6 MB, free: 15 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004028/0.3405, allocations: 32.42 kB / 447.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003311/0.3438, allocations: 2.064 MB / 449.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.3442, allocations: 0.7202 MB / 450.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.3443, allocations: 18.2 kB / 450.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3444, allocations: 42.23 kB / 450.4 MB, free: 12.67 MB / 334.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3444, allocations: 0 / 450.4 MB, free: 12.67 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04219/0.3866, allocations: 3.702 MB / 454.1 MB, free: 11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.279/8.666, allocations: 12.8 kB / 454.1 MB, free: 10.99 MB / 334.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 & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.012 IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonLL.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonLL.pipe 2>&1)