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.001421/0.001421, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001619/0.001619, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.499/1.499, allocations: 230.6 MB / 256 MB, free: 7.969 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.06647/0.06647, allocations: 11.33 MB / 323.8 MB, free: 8.207 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.002066/0.002066, allocations: 63.91 kB / 451 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1091, allocations: 56.07 MB / 0.4952 GB, free: 2.312 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003453/0.1125, allocations: 2.016 MB / 0.4972 GB, free: 292 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002285/0.1148, allocations: 1.36 MB / 0.4985 GB, free: 14.92 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.1149, allocations: 11.94 kB / 0.4985 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008696/0.1158, allocations: 331.1 kB / 0.4988 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005668/0.1164, allocations: 263.1 kB / 0.4991 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005916/0.117, allocations: 250.7 kB / 0.4993 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.1174, allocations: 351.1 kB / 0.4997 GB, free: 13.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.1175, allocations: 28.84 kB / 0.4997 GB, free: 13.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002115/0.1177, allocations: 159.4 kB / 0.4998 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000221/0.1179, allocations: 167.3 kB / 0.5 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.561e-05/0.118, allocations: 16 kB / 0.5 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002121/0.1182, allocations: 107.9 kB / 0.5001 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001135/0.1183, allocations: 83.75 kB / 0.5002 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.1184, allocations: 135.1 kB / 0.5003 GB, free: 13.05 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004751/0.1189, allocations: 382.3 kB / 0.5007 GB, free: 12.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1189, allocations: 4 kB / 0.5007 GB, free: 12.67 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1189, allocations: 0 / 0.5007 GB, free: 12.67 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.1189, allocations: 0 / 0.5007 GB, free: 12.67 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.001009/0.1199, allocations: 0.6243 MB / 0.5013 GB, free: 12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.436e-05/0.12, allocations: 8.031 kB / 0.5013 GB, free: 12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.125e-05/0.12, allocations: 46.73 kB / 0.5014 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.93e-05/0.1201, allocations: 40.64 kB / 0.5014 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.1205, allocations: 292.8 kB / 0.5017 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.1205, allocations: 8.359 kB / 0.5017 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.1206, allocations: 11.94 kB / 0.5017 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.1208, allocations: 130.3 kB / 0.5018 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1208, allocations: 0 / 0.5018 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.1209, allocations: 11.98 kB / 0.5018 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.1209, allocations: 0 / 0.5018 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.121, allocations: 55.88 kB / 0.5019 GB, free: 11.36 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006718/0.1217, allocations: 447.6 kB / 0.5023 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.122, allocations: 118.8 kB / 0.5024 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.1221, allocations: 52.77 kB / 0.5025 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.1222, allocations: 0 / 0.5025 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002545/0.1224, allocations: 119.3 kB / 0.5026 GB, free: 10.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.1224, allocations: 0 / 0.5026 GB, free: 10.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005409/0.1229, allocations: 239.9 kB / 0.5028 GB, free: 10.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/0.123, allocations: 118.7 kB / 0.5029 GB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005963/0.1236, allocations: 493.6 kB / 0.5034 GB, free: 9.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1237, allocations: 33.7 kB / 0.5034 GB, free: 9.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.1238, allocations: 172.4 kB / 0.5036 GB, free: 9.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.532e-05/0.1238, allocations: 39.69 kB / 0.5036 GB, free: 9.445 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.979e-05/0.1239, allocations: 45.7 kB / 0.5037 GB, free: 9.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.1241, allocations: 342.8 kB / 0.504 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.1242, allocations: 43.98 kB / 0.5041 GB, free: 9.008 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.1244, allocations: 127.7 kB / 0.5042 GB, free: 8.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.1246, allocations: 137.9 kB / 0.5043 GB, free: 8.695 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1246, allocations: 0 / 0.5043 GB, free: 8.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003728/0.125, allocations: 197.2 kB / 0.5045 GB, free: 8.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.125, allocations: 8.156 kB / 0.5045 GB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.125, allocations: 8.109 kB / 0.5045 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.125, allocations: 4.047 kB / 0.5045 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.1252, allocations: 27.92 kB / 0.5045 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1252, allocations: 7.984 kB / 0.5045 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.1253, allocations: 15.95 kB / 0.5046 GB, free: 8.426 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.1253, allocations: 4 kB / 0.5046 GB, free: 8.422 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.0001862/0.1255, allocations: 188.2 kB / 0.5047 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.562e-05/0.1255, allocations: 43.7 kB / 0.5048 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004127/0.126, allocations: 196.7 kB / 0.505 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.126, allocations: 0 / 0.505 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.126, allocations: 0 / 0.505 GB, free: 7.992 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.126, allocations: 7.984 kB / 0.505 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.1263, allocations: 280.4 kB / 0.5053 GB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.1263, allocations: 3.938 kB / 0.5053 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.3e-05/0.1263, allocations: 15.92 kB / 0.5053 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1263, allocations: 0 / 0.5053 GB, free: 7.648 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1263, allocations: 7.938 kB / 0.5053 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.676e-06/0.1263, allocations: 8 kB / 0.5053 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1263, allocations: 0 / 0.5053 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003827/0.1267, allocations: 211.6 kB / 0.5055 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.64e-05/0.1268, allocations: 43.62 kB / 0.5055 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.1268, allocations: 4 kB / 0.5055 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.243e-05/0.1269, allocations: 15.98 kB / 0.5055 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.347e-05/0.127, allocations: 11.98 kB / 0.5056 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.077e-05/0.127, allocations: 7.984 kB / 0.5056 GB, free: 7.328 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004203/0.1274, allocations: 363.1 kB / 0.5059 GB, free: 6.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1274, allocations: 0 / 0.5059 GB, free: 6.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003086/0.1277, allocations: 51.94 kB / 0.506 GB, free: 6.93 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 (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.00218/0.1299, allocations: 1.092 MB / 0.507 GB, free: 5.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003257/0.1302, allocations: 123 kB / 0.5071 GB, free: 5.848 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1302, allocations: 0 / 0.5071 GB, free: 5.848 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.1304, allocations: 59.84 kB / 0.5072 GB, free: 5.789 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.1308, allocations: 83.25 kB / 0.5073 GB, free: 5.711 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003936/0.1347, allocations: 3.068 MB / 0.5103 GB, free: 2.523 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.1352, allocations: 0.787 MB / 0.511 GB, free: 1.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001294/0.1353, allocations: 46.25 kB / 0.5111 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.1354, allocations: 95.41 kB / 0.5112 GB, free: 1.57 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1354, allocations: 0 / 0.5112 GB, free: 1.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2238/0.3593, allocations: 7.961 MB / 0.519 GB, free: 22.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.76, allocations: 5.203 kB / 0.519 GB, free: 22.21 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop_fmu --startTime=0 --stopTime=20 --stepSize=0.008 --timeout=50 --tolerance=1e-06 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.450033721048385] Failed to read output from testmodel.py, exit status != 0: 11.924390384927392 11.940206944 11.818253434 Calling exit ...