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.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.001311/0.001311, allocations: 106.9 kB / 16.45 MB, free: 6.5 MB / 14.72 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.0014/0.0014, allocations: 210.4 kB / 19.42 MB, free: 3.66 MB / 14.72 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 1.552/1.552, allocations: 230.6 MB / 252.8 MB, free: 8.996 MB / 206.1 MB " [Timeout remaining time 178] 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.06672/0.06672, allocations: 11.31 MB / 320.2 MB, free: 9.441 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/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.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: IndustrialControlSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 59.91 kB / 445.8 MB, free: 13.82 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1271, allocations: 56.03 MB / 0.4901 GB, free: 5.688 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003764/0.1308, allocations: 1.992 MB / 0.492 GB, free: 3.676 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002406/0.1332, allocations: 1.356 MB / 0.4933 GB, free: 2.312 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.1333, allocations: 0 / 0.4933 GB, free: 2.312 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008892/0.1342, allocations: 322.2 kB / 0.4936 GB, free: 2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005727/0.1348, allocations: 263.1 kB / 0.4939 GB, free: 1.742 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005783/0.1354, allocations: 234.1 kB / 0.4941 GB, free: 1.516 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004197/0.1358, allocations: 359 kB / 0.4945 GB, free: 1.164 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.1359, allocations: 28.67 kB / 0.4945 GB, free: 1.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.1361, allocations: 151.4 kB / 0.4946 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003122/0.1364, allocations: 167.3 kB / 0.4948 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.837e-05/0.1365, allocations: 20 kB / 0.4948 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002014/0.1367, allocations: 103.9 kB / 0.4949 GB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001132/0.1368, allocations: 87.73 kB / 0.495 GB, free: 0.6172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.1369, allocations: 139.1 kB / 0.4951 GB, free: 492 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.1374, allocations: 374.4 kB / 0.4955 GB, free: 116 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.1374, allocations: 4 kB / 0.4955 GB, free: 112 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1374, allocations: 0 / 0.4955 GB, free: 112 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1374, allocations: 0 / 0.4955 GB, free: 112 kB / 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.00114/0.1386, allocations: 0.692 MB / 0.4962 GB, free: 15.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1386, allocations: 12.03 kB / 0.4962 GB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.785e-05/0.1387, allocations: 42.73 kB / 0.4962 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.689e-05/0.1387, allocations: 36.7 kB / 0.4963 GB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005052/0.1393, allocations: 350.7 kB / 0.4966 GB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.1393, allocations: 4.375 kB / 0.4966 GB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.918e-05/0.1393, allocations: 11.94 kB / 0.4966 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.1396, allocations: 132.1 kB / 0.4967 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1396, allocations: 4 kB / 0.4967 GB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.1396, allocations: 8 kB / 0.4967 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.1396, allocations: 0 / 0.4967 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/0.1398, allocations: 55.72 kB / 0.4968 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007223/0.1405, allocations: 480.4 kB / 0.4972 GB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003514/0.1409, allocations: 126.8 kB / 0.4974 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.141, allocations: 44.83 kB / 0.4974 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.1411, allocations: 0 / 0.4974 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/0.1413, allocations: 118.5 kB / 0.4975 GB, free: 13.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.1413, allocations: 4 kB / 0.4975 GB, free: 13.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005987/0.1419, allocations: 245.2 kB / 0.4978 GB, free: 13.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.142, allocations: 110.8 kB / 0.4979 GB, free: 13.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000613/0.1427, allocations: 489.6 kB / 0.4983 GB, free: 12.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.1427, allocations: 33.7 kB / 0.4984 GB, free: 12.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001561/0.1428, allocations: 168.4 kB / 0.4985 GB, free: 12.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.285e-05/0.1429, allocations: 43.67 kB / 0.4986 GB, free: 12.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.297e-05/0.143, allocations: 45.7 kB / 0.4986 GB, free: 12.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.1432, allocations: 342.8 kB / 0.4989 GB, free: 12.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.1433, allocations: 47.97 kB / 0.499 GB, free: 12.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001828/0.1435, allocations: 119.9 kB / 0.4991 GB, free: 12.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002587/0.1437, allocations: 145.8 kB / 0.4992 GB, free: 11.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1438, allocations: 0 / 0.4992 GB, free: 11.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003876/0.1441, allocations: 205.2 kB / 0.4994 GB, free: 11.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.1442, allocations: 4 kB / 0.4994 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.1442, allocations: 4 kB / 0.4994 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.1442, allocations: 0 / 0.4994 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.1443, allocations: 27.92 kB / 0.4995 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.1443, allocations: 4 kB / 0.4995 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.1444, allocations: 23.88 kB / 0.4995 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.1445, allocations: 8.156 kB / 0.4995 GB, free: 11.67 MB / 382.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.0002058/0.1447, allocations: 188 kB / 0.4997 GB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.875e-05/0.1447, allocations: 39.7 kB / 0.4997 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.713e-05/0.1448, allocations: 35.12 kB / 0.4998 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1448, allocations: 4 kB / 0.4998 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1448, allocations: 0 / 0.4998 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1448, allocations: 3.984 kB / 0.4998 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003266/0.1451, allocations: 301.4 kB / 0.5001 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1451, allocations: 7.938 kB / 0.5001 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.733e-05/0.1452, allocations: 11.98 kB / 0.5001 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1452, allocations: 0 / 0.5001 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.1452, allocations: 7.938 kB / 0.5001 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1452, allocations: 0 / 0.5001 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1452, allocations: 0 / 0.5001 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005194/0.1457, allocations: 224.7 kB / 0.5003 GB, free: 10.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.1458, allocations: 116.8 kB / 0.5004 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.742e-05/0.1459, allocations: 12.12 kB / 0.5004 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.22e-05/0.146, allocations: 11.98 kB / 0.5004 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.389e-05/0.146, allocations: 11.98 kB / 0.5004 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.1461, allocations: 8 kB / 0.5004 GB, free: 10.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004264/0.1465, allocations: 359.1 kB / 0.5008 GB, free: 10.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1465, allocations: 0 / 0.5008 GB, free: 10.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003306/0.1468, allocations: 59.92 kB / 0.5008 GB, free: 10.2 MB / 382.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,resetSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent) * 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.002227/0.149, allocations: 1.094 MB / 0.5019 GB, free: 9.242 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003585/0.1494, allocations: 115.9 kB / 0.502 GB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1494, allocations: 0 / 0.502 GB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.1496, allocations: 64.17 kB / 0.5021 GB, free: 9.066 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004521/0.15, allocations: 73.86 kB / 0.5022 GB, free: 9.004 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004223/0.1542, allocations: 3.069 MB / 0.5052 GB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.1547, allocations: 0.7792 MB / 0.5059 GB, free: 5.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000169/0.1549, allocations: 54.23 kB / 0.506 GB, free: 4.961 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/0.1551, allocations: 95.41 kB / 0.5061 GB, free: 4.867 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1551, allocations: 0 / 0.5061 GB, free: 4.867 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2546/0.4097, allocations: 7.796 MB / 0.5137 GB, free: 23.81 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.361/8.77, allocations: 1.188 kB / 0.5137 GB, free: 23.81 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.59588855500624] Failed to read output from testmodel.py, exit status != 0: 8.898690446003457 8.912111321 8.771874401 Calling exit ...