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.001432/0.001432, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001599/0.001599, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.403/1.403, allocations: 230.6 MB / 256 MB, free: 7.797 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.06367/0.06367, allocations: 11.34 MB / 323.8 MB, free: 8.062 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.002182/0.002182, allocations: 71.83 kB / 451 MB, free: 10.35 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1067, allocations: 56.07 MB / 0.4952 GB, free: 2.184 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.004028/0.1107, allocations: 1.935 MB / 0.497 GB, free: 244 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.1131, allocations: 1.275 MB / 0.4983 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001973/0.1133, allocations: 3.938 kB / 0.4983 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000989/0.1143, allocations: 333.9 kB / 0.4986 GB, free: 14.63 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007068/0.115, allocations: 271.1 kB / 0.4989 GB, free: 14.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006432/0.1157, allocations: 234.2 kB / 0.4991 GB, free: 14.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004923/0.1162, allocations: 363 kB / 0.4994 GB, free: 13.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.1163, allocations: 28.86 kB / 0.4995 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002649/0.1166, allocations: 147.5 kB / 0.4996 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.1168, allocations: 159.4 kB / 0.4998 GB, free: 13.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.703e-05/0.1169, allocations: 24 kB / 0.4998 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002409/0.1171, allocations: 103.9 kB / 0.4999 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001325/0.1172, allocations: 91.67 kB / 0.5 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.1174, allocations: 103.3 kB / 0.5001 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005304/0.1179, allocations: 382.4 kB / 0.5004 GB, free: 12.76 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.716e-06/0.1179, allocations: 0 / 0.5004 GB, free: 12.76 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1179, allocations: 0 / 0.5004 GB, free: 12.76 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.548e-05/0.1179, allocations: 0 / 0.5004 GB, free: 12.76 MB / 382.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.00112/0.119, allocations: 0.6165 MB / 0.501 GB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1191, allocations: 16.03 kB / 0.501 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.378e-05/0.1191, allocations: 34.75 kB / 0.5011 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.868e-05/0.1192, allocations: 40.69 kB / 0.5011 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004808/0.1197, allocations: 296.8 kB / 0.5014 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.1197, allocations: 4.375 kB / 0.5014 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.1197, allocations: 15.94 kB / 0.5014 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.12, allocations: 105.6 kB / 0.5015 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.12, allocations: 0 / 0.5015 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.12, allocations: 7.922 kB / 0.5015 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.12, allocations: 0 / 0.5015 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001541/0.1202, allocations: 63.97 kB / 0.5016 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006798/0.1209, allocations: 423.5 kB / 0.502 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.1212, allocations: 134.7 kB / 0.5021 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.1213, allocations: 48.77 kB / 0.5022 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.1213, allocations: 4 kB / 0.5022 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.1216, allocations: 119.3 kB / 0.5023 GB, free: 10.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.1216, allocations: 4 kB / 0.5023 GB, free: 10.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005376/0.1221, allocations: 249.2 kB / 0.5025 GB, free: 10.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.1222, allocations: 59.34 kB / 0.5026 GB, free: 10.38 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005788/0.1227, allocations: 493.6 kB / 0.5031 GB, free: 9.887 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.1228, allocations: 29.7 kB / 0.5031 GB, free: 9.852 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.1229, allocations: 172.4 kB / 0.5033 GB, free: 9.676 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.808e-05/0.1229, allocations: 43.69 kB / 0.5033 GB, free: 9.633 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.746e-05/0.123, allocations: 41.7 kB / 0.5033 GB, free: 9.586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1232, allocations: 346.8 kB / 0.5037 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.1233, allocations: 43.98 kB / 0.5037 GB, free: 9.195 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002047/0.1235, allocations: 171.1 kB / 0.5039 GB, free: 8.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002475/0.1237, allocations: 141.9 kB / 0.504 GB, free: 8.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1237, allocations: 4 kB / 0.504 GB, free: 8.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000376/0.1241, allocations: 205.3 kB / 0.5042 GB, free: 8.617 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.1241, allocations: 10.03 kB / 0.5042 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1241, allocations: 0 / 0.5042 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.1242, allocations: 4 kB / 0.5042 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.1243, allocations: 23.92 kB / 0.5042 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.1243, allocations: 4 kB / 0.5042 GB, free: 8.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.1244, allocations: 23.88 kB / 0.5043 GB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.1244, allocations: 4 kB / 0.5043 GB, free: 8.551 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.0001852/0.1246, allocations: 188.5 kB / 0.5044 GB, free: 8.359 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.659e-05/0.1247, allocations: 39.7 kB / 0.5045 GB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004184/0.1251, allocations: 220.6 kB / 0.5047 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.1251, allocations: 0 / 0.5047 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.1251, allocations: 3.938 kB / 0.5047 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.1251, allocations: 4 kB / 0.5047 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002837/0.1254, allocations: 260.6 kB / 0.505 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1254, allocations: 3.938 kB / 0.505 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.71e-05/0.1254, allocations: 8 kB / 0.505 GB, free: 7.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.1254, allocations: 4 kB / 0.505 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.765e-05/0.1254, allocations: 11.98 kB / 0.505 GB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-06/0.1254, allocations: 3.938 kB / 0.505 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1254, allocations: 0 / 0.505 GB, free: 7.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003934/0.1258, allocations: 242.4 kB / 0.5052 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.19e-05/0.1259, allocations: 39.73 kB / 0.5053 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.709e-05/0.126, allocations: 0 / 0.5053 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.955e-05/0.1261, allocations: 11.98 kB / 0.5053 GB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.616e-05/0.1261, allocations: 15.97 kB / 0.5053 GB, free: 7.445 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.887e-05/0.1261, allocations: 8 kB / 0.5053 GB, free: 7.438 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000394/0.1265, allocations: 367.1 kB / 0.5056 GB, free: 7.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1265, allocations: 0 / 0.5056 GB, free: 7.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.1268, allocations: 55.92 kB / 0.5057 GB, free: 7.027 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,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 (17): * Single equations (assignments): 11 * 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.002216/0.129, allocations: 1.139 MB / 0.5068 GB, free: 6.047 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000343/0.1294, allocations: 124 kB / 0.5069 GB, free: 5.926 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.1294, allocations: 8.062 kB / 0.5069 GB, free: 5.918 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001431/0.1295, allocations: 59.91 kB / 0.507 GB, free: 5.859 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.1299, allocations: 75 kB / 0.5071 GB, free: 5.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004057/0.134, allocations: 3.097 MB / 0.5101 GB, free: 2.574 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00018/0.1342, allocations: 170.2 kB / 0.5102 GB, free: 2.391 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.1343, allocations: 51.19 kB / 0.5103 GB, free: 2.336 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.1345, allocations: 103.4 kB / 0.5104 GB, free: 2.234 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.1345, allocations: 0 / 0.5104 GB, free: 2.234 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2281/0.3625, allocations: 8.565 MB / 0.5188 GB, free: 22.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.44, allocations: 11.38 kB / 0.5188 GB, free: 22.27 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.08664859784767] Failed to read output from testmodel.py, exit status != 0: 11.598156293854117 11.614059989 11.493175272 Calling exit ...