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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008431/0.0008431, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008413/0.0008413, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.903/0.903, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.03337/0.03337, allocations: 8.61 MB / 267.8 MB, free: 5.117 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.704e-06/1.704e-06, allocations: 0 / 395.1 MB, free: 2.668 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.185e-05, allocations: 5.234 kB / 395.1 MB, free: 2.664 MB / 362.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.LinearSystems.Examples.BasicComparisonFO): time 0.001993/0.002015, allocations: 1.58 MB / 396.6 MB, free: 1.074 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004675/0.002483, allocations: 243.7 kB / 396.9 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.211e-05/0.002545, allocations: 8 kB / 396.9 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 4.348e-05/0.002588, allocations: 7.875 kB / 396.9 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 9.55e-05/0.002684, allocations: 15.8 kB / 396.9 MB, free: 0.8047 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.002979, allocations: 71.8 kB / 397 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.000173/0.003152, allocations: 103.7 kB / 397.1 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.003277, allocations: 13.62 kB / 397.1 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.964e-05/0.003347, allocations: 55.83 kB / 397.2 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.124e-05/0.003418, allocations: 43.81 kB / 397.2 MB, free: 0.5195 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.617e-05/0.003444, allocations: 8 kB / 397.2 MB, free: 0.5117 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.296e-05/0.003517, allocations: 39.91 kB / 397.2 MB, free: 484 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.938e-05/0.003546, allocations: 23.91 kB / 397.3 MB, free: 460 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.532e-05/0.003582, allocations: 27.86 kB / 397.3 MB, free: 432 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.003762, allocations: 119.6 kB / 397.4 MB, free: 312 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.003764, allocations: 0 / 397.4 MB, free: 312 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.003765, allocations: 0 / 397.4 MB, free: 312 kB / 362.7 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.003771, allocations: 4 kB / 397.4 MB, free: 308 kB / 362.7 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.0005078/0.004279, allocations: 349.6 kB / 397.8 MB, free: 15.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.004319, allocations: 8.031 kB / 397.8 MB, free: 15.92 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.554e-05/0.004354, allocations: 46.73 kB / 397.8 MB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.278e-05/0.004387, allocations: 12.89 kB / 397.8 MB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.004535, allocations: 161.4 kB / 398 MB, free: 15.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.004548, allocations: 8.375 kB / 398 MB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.335e-05/0.004571, allocations: 12.36 kB / 398 MB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000153/0.004724, allocations: 86.22 kB / 398.1 MB, free: 15.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.004731, allocations: 192 / 398.1 MB, free: 15.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.004741, allocations: 4.375 kB / 398.1 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.224e-06/0.004749, allocations: 8.109 kB / 398.1 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.713e-05/0.004826, allocations: 43.98 kB / 398.1 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004175/0.005243, allocations: 331.7 kB / 398.5 MB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001376/0.005381, allocations: 98.58 kB / 398.6 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.19e-05/0.005453, allocations: 56.83 kB / 398.6 MB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.005463, allocations: 3.938 kB / 398.6 MB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001638/0.005627, allocations: 107.4 kB / 398.7 MB, free: 14.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.005628, allocations: 0 / 398.7 MB, free: 14.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003018/0.00593, allocations: 189.5 kB / 398.9 MB, free: 14.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/0.005972, allocations: 63.34 kB / 399 MB, free: 14.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.006079, allocations: 163.3 kB / 399.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.006094, allocations: 29.7 kB / 399.2 MB, free: 14.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.006197, allocations: 112 kB / 399.3 MB, free: 14.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.574e-05/0.006223, allocations: 35.83 kB / 399.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.147e-05/0.006265, allocations: 37.7 kB / 399.3 MB, free: 14.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.934e-05/0.006354, allocations: 326.8 kB / 399.7 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.859e-05/0.006403, allocations: 31.98 kB / 399.7 MB, free: 13.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.084e-05/0.006473, allocations: 81.98 kB / 399.8 MB, free: 13.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001316/0.006605, allocations: 137.2 kB / 399.9 MB, free: 13.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.006608, allocations: 3.938 kB / 399.9 MB, free: 13.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0001835/0.006791, allocations: 161.4 kB / 400.1 MB, free: 13.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.006806, allocations: 4 kB / 400.1 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.006812, allocations: 4 kB / 400.1 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.006826, allocations: 0 / 400.1 MB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.007021, allocations: 31.92 kB / 400.1 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.00703, allocations: 4 kB / 400.1 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.67e-05/0.007066, allocations: 19.88 kB / 400.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.007077, allocations: 7.984 kB / 400.1 MB, free: 13.33 MB / 378.7 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 9.367e-05/0.007171, allocations: 133.9 kB / 400.3 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.504e-05/0.007186, allocations: 15.91 kB / 400.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.755e-05/0.007223, allocations: 17.47 kB / 400.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.007227, allocations: 3.984 kB / 400.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.007233, allocations: 0 / 400.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.007238, allocations: 0 / 400.3 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003644/0.007602, allocations: 397.5 kB / 400.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.007603, allocations: 0 / 400.7 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.506e-05/0.007668, allocations: 19.94 kB / 400.7 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.007671, allocations: 4 kB / 400.7 MB, free: 12.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.007683, allocations: 7.984 kB / 400.7 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.007685, allocations: 4 kB / 400.7 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.007687, allocations: 4 kB / 400.7 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.007951, allocations: 294.9 kB / 401 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.478e-05/0.007965, allocations: 15.92 kB / 401 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.708e-05/0.007982, allocations: 4 kB / 401 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.724e-05/0.00802, allocations: 4 kB / 401 MB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.666e-05/0.008056, allocations: 7.984 kB / 401.1 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.008066, allocations: 11.98 kB / 401.1 MB, free: 12.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.198e-05/0.008128, allocations: 128.9 kB / 401.2 MB, free: 12.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008128, allocations: 0 / 401.2 MB, free: 12.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001803/0.008309, allocations: 31.94 kB / 401.2 MB, free: 12.17 MB / 378.7 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.0006243/0.008933, allocations: 0.8411 MB / 402.1 MB, free: 11.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001667/0.0091, allocations: 100.2 kB / 402.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.009102, allocations: 64 / 402.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.336e-05/0.009165, allocations: 59.91 kB / 402.2 MB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002187/0.009384, allocations: 32.25 kB / 402.3 MB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.01126, allocations: 1.922 MB / 404.2 MB, free: 9.074 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.069e-05/0.01133, allocations: 97.8 kB / 404.3 MB, free: 8.961 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.304e-05/0.01138, allocations: 13.48 kB / 404.3 MB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.957e-05/0.01144, allocations: 36.48 kB / 404.3 MB, free: 8.91 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01144, allocations: 0 / 404.3 MB, free: 8.91 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01861/0.03005, allocations: 3.754 MB / 408.1 MB, free: 5.309 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.776/6.806, allocations: 12.59 kB / 408.1 MB, free: 5.301 MB / 378.7 MB " [Timeout remaining time 653] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.706120402552187] Failed to read output from testmodel.py, exit status != 0: 6.890948871150613 6.898729817 6.893316721 Calling exit ...