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.001207/0.001207, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.00133/0.00133, allocations: 220 kB / 23.03 MB, free: 4.918 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.33/1.33, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 179] 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.08027/0.08027, allocations: 11.35 MB / 324.6 MB, free: 8.027 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.001905/0.001905, allocations: 71.84 kB / 451.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1026, allocations: 56.07 MB / 0.4959 GB, free: 2.156 MB / 366.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003235/0.1059, allocations: 1.919 MB / 0.4978 GB, free: 232 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002062/0.1079, allocations: 1.286 MB / 0.4991 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.487e-05/0.108, allocations: 3.938 kB / 0.4991 GB, free: 14.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008228/0.1088, allocations: 334.5 kB / 0.4994 GB, free: 14.61 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005375/0.1094, allocations: 275.1 kB / 0.4996 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005283/0.1099, allocations: 231.4 kB / 0.4999 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003915/0.1103, allocations: 363 kB / 0.5002 GB, free: 13.75 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001207/0.1104, allocations: 32.86 kB / 0.5002 GB, free: 13.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00017/0.1106, allocations: 147.5 kB / 0.5004 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002066/0.1108, allocations: 171.3 kB / 0.5005 GB, free: 13.41 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.85e-05/0.1108, allocations: 20 kB / 0.5006 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002038/0.111, allocations: 103.9 kB / 0.5007 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1112, allocations: 95.67 kB / 0.5007 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.1113, allocations: 91.41 kB / 0.5008 GB, free: 13.1 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000452/0.1117, allocations: 390.3 kB / 0.5012 GB, free: 12.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1117, allocations: 4 kB / 0.5012 GB, free: 12.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1117, allocations: 0 / 0.5012 GB, free: 12.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.1117, allocations: 0 / 0.5012 GB, free: 12.71 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.0009325/0.1127, allocations: 0.6165 MB / 0.5018 GB, free: 12.05 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1127, allocations: 12.03 kB / 0.5018 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.789e-05/0.1127, allocations: 192 / 0.5018 GB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.091e-05/0.1128, allocations: 46.73 kB / 0.5019 GB, free: 11.99 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.09e-05/0.1128, allocations: 36.7 kB / 0.5019 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004297/0.1133, allocations: 284.8 kB / 0.5022 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.1133, allocations: 8.125 kB / 0.5022 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.544e-05/0.1133, allocations: 15.98 kB / 0.5022 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002967/0.1136, allocations: 191.5 kB / 0.5024 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1136, allocations: 3.938 kB / 0.5024 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.1136, allocations: 0 / 0.5024 GB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.1137, allocations: 4 kB / 0.5024 GB, free: 11.4 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.1138, allocations: 63.88 kB / 0.5024 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006305/0.1144, allocations: 423.6 kB / 0.5029 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003141/0.1148, allocations: 126.8 kB / 0.503 GB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.1149, allocations: 52.77 kB / 0.503 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.1149, allocations: 0 / 0.503 GB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002463/0.1151, allocations: 123.3 kB / 0.5031 GB, free: 10.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1151, allocations: 0 / 0.5031 GB, free: 10.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.000542/0.1157, allocations: 249.2 kB / 0.5034 GB, free: 10.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.1157, allocations: 110.8 kB / 0.5035 GB, free: 10.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005366/0.1163, allocations: 0.4898 MB / 0.504 GB, free: 9.676 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.1163, allocations: 33.69 kB / 0.504 GB, free: 9.637 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.1164, allocations: 168.4 kB / 0.5042 GB, free: 9.465 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.341e-05/0.1165, allocations: 43.67 kB / 0.5042 GB, free: 9.422 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.714e-05/0.1166, allocations: 41.7 kB / 0.5042 GB, free: 9.375 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.1167, allocations: 350.8 kB / 0.5046 GB, free: 9.023 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.1168, allocations: 43.98 kB / 0.5046 GB, free: 8.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.117, allocations: 228.2 kB / 0.5048 GB, free: 8.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000245/0.1173, allocations: 149.9 kB / 0.505 GB, free: 8.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1173, allocations: 4 kB / 0.505 GB, free: 8.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003604/0.1176, allocations: 201.2 kB / 0.5052 GB, free: 8.324 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1177, allocations: 8 kB / 0.5052 GB, free: 8.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1177, allocations: 3.938 kB / 0.5052 GB, free: 8.312 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.1177, allocations: 4 kB / 0.5052 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.1178, allocations: 23.92 kB / 0.5052 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1178, allocations: 8.156 kB / 0.5052 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001092/0.1179, allocations: 19.89 kB / 0.5052 GB, free: 8.258 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.1179, allocations: 15.98 kB / 0.5053 GB, free: 8.242 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.0001698/0.1181, allocations: 172.3 kB / 0.5054 GB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.518e-05/0.1181, allocations: 43.81 kB / 0.5055 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004193/0.1186, allocations: 219.3 kB / 0.5057 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.1186, allocations: 8.047 kB / 0.5057 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.1186, allocations: 3.984 kB / 0.5057 GB, free: 7.797 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1186, allocations: 4 kB / 0.5057 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.1189, allocations: 268.4 kB / 0.5059 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1189, allocations: 0 / 0.5059 GB, free: 7.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.101e-05/0.1189, allocations: 19.92 kB / 0.506 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.1189, allocations: 0 / 0.506 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1189, allocations: 0 / 0.506 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.1189, allocations: 4 kB / 0.506 GB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1189, allocations: 0 / 0.506 GB, free: 7.465 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003952/0.1193, allocations: 240.8 kB / 0.5062 GB, free: 7.211 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.1194, allocations: 27.8 kB / 0.5062 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.578e-05/0.1194, allocations: 12 kB / 0.5062 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.328e-05/0.1195, allocations: 11.98 kB / 0.5062 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.1196, allocations: 11.98 kB / 0.5063 GB, free: 7.148 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.1196, allocations: 4 kB / 0.5063 GB, free: 7.145 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003894/0.12, allocations: 367.1 kB / 0.5066 GB, free: 6.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.12, allocations: 0 / 0.5066 GB, free: 6.793 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003025/0.1203, allocations: 67.81 kB / 0.5067 GB, free: 6.727 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.002173/0.1224, allocations: 1.126 MB / 0.5078 GB, free: 5.758 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003214/0.1228, allocations: 134.7 kB / 0.5079 GB, free: 5.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1228, allocations: 0 / 0.5079 GB, free: 5.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.1229, allocations: 67.89 kB / 0.508 GB, free: 5.562 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.1233, allocations: 77.08 kB / 0.508 GB, free: 5.488 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003769/0.1271, allocations: 3.107 MB / 0.5111 GB, free: 2.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.1273, allocations: 170.1 kB / 0.5112 GB, free: 2.074 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.1274, allocations: 50.52 kB / 0.5113 GB, free: 2.027 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001633/0.1276, allocations: 107.4 kB / 0.5114 GB, free: 1.922 MB / 382.1 MB Notification: Performance of SimCode: time 3e-07/0.1276, allocations: 3.938 kB / 0.5114 GB, free: 1.918 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2094/0.337, allocations: 8.387 MB / 0.5196 GB, free: 22.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.19, allocations: 9.969 kB / 0.5196 GB, free: 22.36 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.712869914947078] Failed to read output from testmodel.py, exit status != 0: 11.408803425030783 11.420700419 11.306558258 Calling exit ...