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.001206/0.001206, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001331/0.001331, allocations: 219.4 kB / 23.04 MB, free: 5.078 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.335/1.335, allocations: 230.6 MB / 256.8 MB, free: 7.973 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.06096/0.06096, allocations: 11.34 MB / 324.6 MB, free: 8.211 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems_Logical_LogicalOperations_Examples_FliFlop",fmuType="cs",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.001921/0.001921, allocations: 63.91 kB / 451.8 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09654/0.09847, allocations: 56.07 MB / 0.496 GB, free: 2.301 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003427/0.1019, allocations: 2.011 MB / 0.498 GB, free: 284 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002296/0.1042, allocations: 1.364 MB / 0.4993 GB, free: 14.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.1043, allocations: 3.938 kB / 0.4993 GB, free: 14.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008533/0.1052, allocations: 333.4 kB / 0.4996 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005757/0.1057, allocations: 267.1 kB / 0.4999 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005853/0.1063, allocations: 242.4 kB / 0.5001 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004083/0.1067, allocations: 359.1 kB / 0.5004 GB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.1069, allocations: 28.86 kB / 0.5005 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.1071, allocations: 151.4 kB / 0.5006 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.1073, allocations: 167.3 kB / 0.5008 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.719e-05/0.1073, allocations: 20 kB / 0.5008 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002023/0.1075, allocations: 107.9 kB / 0.5009 GB, free: 13.26 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.1076, allocations: 95.61 kB / 0.501 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.1077, allocations: 131.2 kB / 0.5011 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004512/0.1082, allocations: 386.4 kB / 0.5015 GB, free: 12.66 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1082, allocations: 7.938 kB / 0.5015 GB, free: 12.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1082, allocations: 0 / 0.5015 GB, free: 12.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.872e-06/0.1082, allocations: 0 / 0.5015 GB, free: 12.65 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.0009836/0.1092, allocations: 0.6087 MB / 0.5021 GB, free: 12 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.1092, allocations: 12.03 kB / 0.5021 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.447e-05/0.1092, allocations: 192 / 0.5021 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.169e-05/0.1093, allocations: 42.73 kB / 0.5021 GB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.072e-05/0.1094, allocations: 40.7 kB / 0.5022 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/0.1098, allocations: 296.7 kB / 0.5025 GB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.1098, allocations: 8.125 kB / 0.5025 GB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.604e-05/0.1099, allocations: 11.98 kB / 0.5025 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002817/0.1101, allocations: 124.2 kB / 0.5026 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1101, allocations: 0 / 0.5026 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.1102, allocations: 12 kB / 0.5026 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1102, allocations: 0 / 0.5026 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.1103, allocations: 63.8 kB / 0.5027 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006793/0.111, allocations: 439.6 kB / 0.5031 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003137/0.1113, allocations: 126.8 kB / 0.5032 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.1114, allocations: 48.83 kB / 0.5033 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.1115, allocations: 3.938 kB / 0.5033 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000253/0.1117, allocations: 114 kB / 0.5034 GB, free: 10.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.1117, allocations: 3.938 kB / 0.5034 GB, free: 10.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005467/0.1123, allocations: 245.2 kB / 0.5036 GB, free: 10.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.629e-05/0.1123, allocations: 106.8 kB / 0.5037 GB, free: 10.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005478/0.1129, allocations: 489.6 kB / 0.5042 GB, free: 9.699 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.1129, allocations: 33.7 kB / 0.5042 GB, free: 9.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.1131, allocations: 172.4 kB / 0.5044 GB, free: 9.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.545e-05/0.1131, allocations: 43.69 kB / 0.5044 GB, free: 9.441 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.329e-05/0.1132, allocations: 41.7 kB / 0.5045 GB, free: 9.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1133, allocations: 346.8 kB / 0.5048 GB, free: 9.047 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1134, allocations: 43.98 kB / 0.5048 GB, free: 9.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.1136, allocations: 127.7 kB / 0.5049 GB, free: 8.848 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002319/0.1138, allocations: 141.9 kB / 0.5051 GB, free: 8.688 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1138, allocations: 0 / 0.5051 GB, free: 8.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000345/0.1142, allocations: 205.2 kB / 0.5053 GB, free: 8.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.1142, allocations: 6.031 kB / 0.5053 GB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.1142, allocations: 4 kB / 0.5053 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.1142, allocations: 3.938 kB / 0.5053 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/0.1143, allocations: 23.98 kB / 0.5053 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.1143, allocations: 7.938 kB / 0.5053 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001069/0.1144, allocations: 19.94 kB / 0.5053 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.192e-05/0.1144, allocations: 4 kB / 0.5053 GB, free: 8.414 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.0001684/0.1146, allocations: 184.5 kB / 0.5055 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.432e-05/0.1147, allocations: 39.7 kB / 0.5056 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003857/0.1151, allocations: 204.6 kB / 0.5058 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1151, allocations: 0 / 0.5058 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.1151, allocations: 0 / 0.5058 GB, free: 7.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1151, allocations: 4 kB / 0.5058 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.1153, allocations: 284.4 kB / 0.506 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.1153, allocations: 48 / 0.506 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.569e-05/0.1154, allocations: 15.98 kB / 0.506 GB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.1154, allocations: 3.938 kB / 0.506 GB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.648e-05/0.1154, allocations: 8.109 kB / 0.5061 GB, free: 7.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1154, allocations: 4 kB / 0.5061 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1154, allocations: 0 / 0.5061 GB, free: 7.629 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003508/0.1158, allocations: 219.3 kB / 0.5063 GB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.798e-05/0.1158, allocations: 43.69 kB / 0.5063 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.229e-05/0.1159, allocations: 4 kB / 0.5063 GB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.56e-05/0.1159, allocations: 15.98 kB / 0.5063 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.341e-05/0.116, allocations: 7.984 kB / 0.5063 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.932e-05/0.116, allocations: 8 kB / 0.5063 GB, free: 7.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003712/0.1164, allocations: 359.1 kB / 0.5067 GB, free: 6.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1164, allocations: 0 / 0.5067 GB, free: 6.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002994/0.1167, allocations: 59.92 kB / 0.5067 GB, free: 6.918 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.002054/0.1187, allocations: 1.086 MB / 0.5078 GB, free: 5.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002989/0.119, allocations: 119.8 kB / 0.5079 GB, free: 5.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.119, allocations: 3.938 kB / 0.5079 GB, free: 5.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001263/0.1192, allocations: 56.23 kB / 0.508 GB, free: 5.785 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.1196, allocations: 85.05 kB / 0.5081 GB, free: 5.707 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003811/0.1234, allocations: 3.071 MB / 0.5111 GB, free: 2.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004069/0.1238, allocations: 0.7792 MB / 0.5118 GB, free: 1.711 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001261/0.1239, allocations: 50.25 kB / 0.5119 GB, free: 1.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.124, allocations: 91.41 kB / 0.512 GB, free: 1.57 MB / 382.1 MB Notification: Performance of SimCode: time 3.91e-07/0.124, allocations: 0 / 0.512 GB, free: 1.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2063/0.3303, allocations: 7.989 MB / 0.5198 GB, free: 22.1 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/11.01, allocations: 14.7 kB / 0.5198 GB, free: 22.09 MB / 382.1 MB " [Timeout remaining time 649] (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 os._exit(0), Time elapsed: 13.486491375020705] Failed to read output from testmodel.py, exit status != 0: 11.217350585036911 11.229028015 11.118463874 Calling exit ...