Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 105.8 kB / 18.84 MB, free: 3.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 191.7 kB / 22.11 MB, free: 5.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 225.6 MB / 250.8 MB, free: 13.05 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06482/0.06482, allocations: 11.37 MB / 317.4 MB, free: 13.79 MB / 254.1 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Logical.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 71.88 kB / 442.2 MB, free: 7.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1127, allocations: 54.89 MB / 497.1 MB, free: 32 kB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003622/0.1163, allocations: 1.978 MB / 499 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.1185, allocations: 1.22 MB / 0.4885 GB, free: 12.81 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.1186, allocations: 3.938 kB / 0.4885 GB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008899/0.1195, allocations: 323.2 kB / 0.4889 GB, free: 12.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004746/0.12, allocations: 223.2 kB / 0.4891 GB, free: 12.27 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007587/0.1207, allocations: 304.6 kB / 0.4894 GB, free: 11.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004107/0.1212, allocations: 335.1 kB / 0.4897 GB, free: 11.65 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.1213, allocations: 28.86 kB / 0.4897 GB, free: 11.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001984/0.1215, allocations: 155.4 kB / 0.4899 GB, free: 11.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.1217, allocations: 163.4 kB / 0.49 GB, free: 11.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.98e-05/0.1218, allocations: 16 kB / 0.49 GB, free: 11.29 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.122, allocations: 95.92 kB / 0.4901 GB, free: 11.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001666/0.1221, allocations: 95.67 kB / 0.4902 GB, free: 11.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.1223, allocations: 123.2 kB / 0.4903 GB, free: 10.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000508/0.1228, allocations: 378.3 kB / 0.4907 GB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1228, allocations: 0 / 0.4907 GB, free: 10.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1228, allocations: 0 / 0.4907 GB, free: 10.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.1228, allocations: 0 / 0.4907 GB, free: 10.61 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.00107/0.1239, allocations: 0.6049 MB / 0.4913 GB, free: 9.961 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.1239, allocations: 8.031 kB / 0.4913 GB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.851e-05/0.124, allocations: 38.75 kB / 0.4913 GB, free: 9.906 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.688e-05/0.124, allocations: 40.69 kB / 0.4914 GB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004586/0.1245, allocations: 280.8 kB / 0.4916 GB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.1245, allocations: 8.375 kB / 0.4916 GB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.1246, allocations: 11.94 kB / 0.4916 GB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002897/0.1248, allocations: 136.2 kB / 0.4918 GB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1249, allocations: 0 / 0.4918 GB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.1249, allocations: 0 / 0.4918 GB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.1249, allocations: 0 / 0.4918 GB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001641/0.125, allocations: 61.16 kB / 0.4918 GB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007088/0.1257, allocations: 435.6 kB / 0.4923 GB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003368/0.1261, allocations: 122.8 kB / 0.4924 GB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.1262, allocations: 52.75 kB / 0.4924 GB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.122e-05/0.1262, allocations: 11.98 kB / 0.4924 GB, free: 8.676 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002589/0.1265, allocations: 119.3 kB / 0.4925 GB, free: 8.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.572e-06/0.1265, allocations: 3.938 kB / 0.4925 GB, free: 8.543 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005764/0.1271, allocations: 239.8 kB / 0.4928 GB, free: 8.305 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.1272, allocations: 106.8 kB / 0.4929 GB, free: 8.176 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006351/0.1278, allocations: 473.6 kB / 0.4933 GB, free: 7.703 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.1278, allocations: 33.7 kB / 0.4934 GB, free: 7.664 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001559/0.128, allocations: 168.4 kB / 0.4935 GB, free: 7.492 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.947e-05/0.128, allocations: 39.69 kB / 0.4936 GB, free: 7.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.679e-05/0.1281, allocations: 41.7 kB / 0.4936 GB, free: 7.406 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1283, allocations: 346.8 kB / 0.4939 GB, free: 7.059 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1284, allocations: 39.98 kB / 0.494 GB, free: 7.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.1286, allocations: 131.4 kB / 0.4941 GB, free: 6.859 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.1288, allocations: 137.9 kB / 0.4942 GB, free: 6.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.1288, allocations: 4 kB / 0.4942 GB, free: 6.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003681/0.1292, allocations: 197.2 kB / 0.4944 GB, free: 6.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.1292, allocations: 4 kB / 0.4944 GB, free: 6.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.1292, allocations: 4 kB / 0.4944 GB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.1292, allocations: 3.984 kB / 0.4944 GB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.1293, allocations: 24 kB / 0.4945 GB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.1294, allocations: 16.08 kB / 0.4945 GB, free: 6.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.1295, allocations: 15.94 kB / 0.4945 GB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.1295, allocations: 4 kB / 0.4945 GB, free: 6.43 MB / 366.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: 17 (flipFlopSR.y1,$PRE.flipFlopSR.y1,flipFlopSR.y2,$PRE.flipFlopSR.y2,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,resetSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.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.0002093/0.1297, allocations: 172.4 kB / 0.4947 GB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.009e-05/0.1297, allocations: 39.7 kB / 0.4947 GB, free: 6.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004675/0.1302, allocations: 212.4 kB / 0.4949 GB, free: 6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.1302, allocations: 0 / 0.4949 GB, free: 6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1302, allocations: 4 kB / 0.4949 GB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.898e-06/0.1302, allocations: 0 / 0.4949 GB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/0.1305, allocations: 272.5 kB / 0.4952 GB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1305, allocations: 3.938 kB / 0.4952 GB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.854e-05/0.1306, allocations: 12 kB / 0.4952 GB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1306, allocations: 0 / 0.4952 GB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.478e-05/0.1306, allocations: 4 kB / 0.4952 GB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1306, allocations: 128 / 0.4952 GB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/0.1306, allocations: 7.938 kB / 0.4952 GB, free: 5.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004151/0.131, allocations: 239.8 kB / 0.4954 GB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.1311, allocations: 31.75 kB / 0.4954 GB, free: 5.379 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.011e-05/0.1311, allocations: 8 kB / 0.4954 GB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.1312, allocations: 7.984 kB / 0.4955 GB, free: 5.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.1313, allocations: 15.97 kB / 0.4955 GB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.1313, allocations: 7.938 kB / 0.4955 GB, free: 5.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004535/0.1317, allocations: 347.1 kB / 0.4958 GB, free: 5.004 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1317, allocations: 0 / 0.4958 GB, free: 5.004 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003074/0.132, allocations: 59.88 kB / 0.4959 GB, free: 4.945 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,flipFlopSR.y1,flipFlopSR.y2,setSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.y,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (flipFlopSR.y1,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.002142/0.1342, allocations: 1.084 MB / 0.4969 GB, free: 3.992 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003342/0.1345, allocations: 119.9 kB / 0.497 GB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.1345, allocations: 0 / 0.497 GB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.1347, allocations: 55.92 kB / 0.4971 GB, free: 3.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005184/0.1352, allocations: 92.47 kB / 0.4972 GB, free: 3.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004103/0.1393, allocations: 3.013 MB / 0.5001 GB, free: 0.6133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.1398, allocations: 0.7751 MB / 0.5009 GB, free: 15.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001996/0.14, allocations: 46.27 kB / 0.5009 GB, free: 15.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.1402, allocations: 95.39 kB / 0.501 GB, free: 15.67 MB / 382.1 MB Notification: Performance of SimCode: time 1.212e-06/0.1402, allocations: 4 kB / 0.501 GB, free: 15.67 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03513/0.1753, allocations: 7.696 MB / 0.5085 GB, free: 8.035 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.35/8.525, allocations: 9.625 kB / 0.5085 GB, free: 8.031 MB / 382.1 MB " [Timeout remaining time 651] (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.sim & python3 -m fmpy simulate --output-file IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop.fmu > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.605448479764163] Failed to read output from testmodel.py, exit status != 0: 8.653810719959438 8.863634604 8.737874404 Calling exit ...