Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.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.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_LinearSystems_Examples_BasicComparisonFO",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.006905/0.006905, allocations: 102.1 kB / 15.73 MB, free: 6.062 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.00179/0.00179, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.374/1.374, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05861/0.05861, allocations: 10.75 MB / 280.7 MB, free: 10.41 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.001478/0.001478, allocations: 71.89 kB / 390.3 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3267, allocations: 49.02 MB / 439.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.002853/0.3296, allocations: 1.578 MB / 440.9 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006812/0.3303, allocations: 248.4 kB / 441.2 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.393e-05/0.3304, allocations: 4.969 kB / 441.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 4.207e-05/0.3304, allocations: 9.422 kB / 441.2 MB, free: 3.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001159/0.3306, allocations: 19.14 kB / 441.2 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.3309, allocations: 70.14 kB / 441.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002447/0.3312, allocations: 93.7 kB / 441.4 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.3313, allocations: 25.98 kB / 441.4 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.383e-05/0.3314, allocations: 45.14 kB / 441.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001171/0.3315, allocations: 54.23 kB / 441.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.014e-05/0.3316, allocations: 8.656 kB / 441.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.3317, allocations: 30.14 kB / 441.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.056e-05/0.3318, allocations: 24.39 kB / 441.6 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.51e-05/0.3319, allocations: 49.8 kB / 441.6 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.3321, allocations: 116.2 kB / 441.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.3321, allocations: 1.984 kB / 441.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3321, allocations: 0 / 441.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.3321, allocations: 0 / 441.7 MB, free: 3.504 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006919/0.3328, allocations: 434.3 kB / 442.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.3329, allocations: 14.36 kB / 442.2 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.967e-05/0.3329, allocations: 38.31 kB / 442.2 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.514e-05/0.333, allocations: 20.41 kB / 442.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002006/0.3332, allocations: 213.8 kB / 442.4 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.3332, allocations: 8.422 kB / 442.4 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.628e-05/0.3332, allocations: 10.22 kB / 442.5 MB, free: 2.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.3335, allocations: 90.69 kB / 442.5 MB, free: 2.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3335, allocations: 7.938 kB / 442.6 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.489e-05/0.3335, allocations: 5.734 kB / 442.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.3335, allocations: 1.281 kB / 442.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001412/0.3337, allocations: 46.92 kB / 442.6 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006374/0.3343, allocations: 375.4 kB / 443 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.3345, allocations: 107.9 kB / 443.1 MB, free: 2.344 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.3347, allocations: 59.08 kB / 443.1 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.65e-05/0.3347, allocations: 1.219 kB / 443.1 MB, free: 2.316 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002448/0.3349, allocations: 112.4 kB / 443.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.463e-06/0.3349, allocations: 1.188 kB / 443.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0003954/0.3354, allocations: 182.4 kB / 443.4 MB, free: 2.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.3354, allocations: 55.52 kB / 443.5 MB, free: 2.098 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.3355, allocations: 168.7 kB / 443.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.3355, allocations: 31.08 kB / 443.7 MB, free: 1.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.3356, allocations: 121.5 kB / 443.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.3356, allocations: 36.58 kB / 443.8 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.048e-05/0.3357, allocations: 36.77 kB / 443.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.982e-05/0.3358, allocations: 331.6 kB / 444.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.599e-05/0.3358, allocations: 34.8 kB / 444.2 MB, free: 1.434 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.349e-05/0.3359, allocations: 86.14 kB / 444.3 MB, free: 1.359 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001727/0.3361, allocations: 119.5 kB / 444.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3361, allocations: 0.6562 kB / 444.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002629/0.3364, allocations: 164.6 kB / 444.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.3364, allocations: 7.375 kB / 444.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3364, allocations: 1.5 kB / 444.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.3364, allocations: 2.594 kB / 444.6 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001319/0.3366, allocations: 31.06 kB / 444.6 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.3366, allocations: 6.875 kB / 444.6 MB, free: 1.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.834e-05/0.3367, allocations: 10.06 kB / 444.6 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.3367, allocations: 8.906 kB / 444.7 MB, free: 1.168 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,fO_dig_TU.y,$PRE.fO_dig_TU.y,fO_dig_FE.y,$PRE.fO_dig_FE.y,fO_dig_BE.y,$PRE.fO_dig_BE.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 7.531e-05/0.3368, allocations: 129.9 kB / 444.8 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.307e-05/0.3368, allocations: 18.75 kB / 444.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.988e-05/0.3368, allocations: 18.09 kB / 444.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.3368, allocations: 1.906 kB / 444.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3369, allocations: 1.75 kB / 444.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.3369, allocations: 0.6562 kB / 444.8 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00043/0.3373, allocations: 439.3 kB / 445.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3373, allocations: 0 / 445.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.952e-05/0.3374, allocations: 20.84 kB / 445.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.3374, allocations: 1.188 kB / 445.3 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.3375, allocations: 7.359 kB / 445.3 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.3375, allocations: 4.5 kB / 445.3 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3375, allocations: 5.25 kB / 445.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004069/0.3379, allocations: 291.6 kB / 445.6 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-05/0.3379, allocations: 91.25 kB / 445.7 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.338, allocations: 10.16 kB / 445.7 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.549e-05/0.338, allocations: 3.984 kB / 445.7 MB, free: 340 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.874e-05/0.3381, allocations: 18.39 kB / 445.7 MB, free: 328 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.3381, allocations: 4.578 kB / 445.7 MB, free: 328 kB / 318.1 MB Notification: Performance of sorting global known variables: time 9.431e-05/0.3382, allocations: 122.7 kB / 445.8 MB, free: 240 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3382, allocations: 0 / 445.8 MB, free: 240 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002738/0.3385, allocations: 30.02 kB / 445.8 MB, free: 232 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (fO.y) * Number of discrete variables: 6 ($whenCondition3,$whenCondition2,$whenCondition1,fO_dig_BE.y,fO_dig_FE.y,fO_dig_TU.y) * Number of discrete states: 6 (fO_dig_TU.u,fO_dig_TU.y,fO_dig_FE.u,fO_dig_FE.y,fO_dig_BE.u,fO_dig_BE.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.0007896/0.3393, allocations: 0.8347 MB / 446.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002635/0.3396, allocations: 104.3 kB / 446.8 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3396, allocations: 5.438 kB / 446.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.3397, allocations: 50.72 kB / 446.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.3401, allocations: 40.11 kB / 446.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002818/0.3429, allocations: 1.918 MB / 448.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004252/0.3433, allocations: 0.7134 MB / 449.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.782e-05/0.3434, allocations: 14.47 kB / 449.5 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.2e-05/0.3435, allocations: 39.12 kB / 449.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3435, allocations: 0 / 449.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0235/0.367, allocations: 3.021 MB / 452.6 MB, free: 11.95 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.068/8.435, allocations: 10.48 kB / 452.6 MB, free: 11.94 MB / 334.1 MB (rm -f IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO_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_BasicComparisonFO.fmu > IndustrialControlSystems_IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO.pipe 2>&1)