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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001764/0.001764, allocations: 109.2 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001891/0.001891, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.383/1.383, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0-master/package.mo): time 0.06358/0.06358, allocations: 11.36 MB / 314 MB, free: 14.95 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-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 67.89 kB / 437.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09692/0.09877, allocations: 54.83 MB / 492.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003486/0.1023, allocations: 1.962 MB / 494.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.1042, allocations: 1.212 MB / 495.3 MB, free: 348 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.665e-05/0.1043, allocations: 0 / 495.3 MB, free: 348 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007975/0.1051, allocations: 313.7 kB / 495.6 MB, free: 36 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00045/0.1056, allocations: 215.3 kB / 495.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007059/0.1063, allocations: 293.4 kB / 496.1 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004101/0.1067, allocations: 335.1 kB / 496.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.1068, allocations: 28.39 kB / 496.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.107, allocations: 147.5 kB / 496.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.1072, allocations: 163.3 kB / 496.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.568e-05/0.1072, allocations: 16 kB / 496.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001907/0.1074, allocations: 99.92 kB / 496.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001086/0.1075, allocations: 91.67 kB / 497 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.1076, allocations: 127.2 kB / 497.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000439/0.1081, allocations: 366.5 kB / 497.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1081, allocations: 0 / 497.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1081, allocations: 3.938 kB / 497.5 MB, free: 14.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1081, allocations: 0 / 497.5 MB, free: 14.19 MB / 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.001011/0.1091, allocations: 0.6803 MB / 498.2 MB, free: 13.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.1091, allocations: 11.89 kB / 498.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.751e-05/0.1092, allocations: 38.75 kB / 498.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.584e-05/0.1092, allocations: 36.7 kB / 498.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004533/0.1097, allocations: 350.5 kB / 498.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.1097, allocations: 16.31 kB / 498.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.153e-05/0.1097, allocations: 11.94 kB / 498.6 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.11, allocations: 140.1 kB / 498.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.11, allocations: 0 / 498.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.11, allocations: 0 / 498.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.181e-06/0.11, allocations: 4 kB / 498.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001478/0.1102, allocations: 51.97 kB / 498.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006534/0.1108, allocations: 468.5 kB / 499.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.1112, allocations: 130.8 kB / 499.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.1113, allocations: 44.83 kB / 499.4 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.612e-05/0.1113, allocations: 7.984 kB / 499.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002405/0.1115, allocations: 123.3 kB / 499.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.1115, allocations: 0 / 499.6 MB, free: 11.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005106/0.112, allocations: 236.4 kB / 499.8 MB, free: 11.67 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.67e-05/0.1121, allocations: 110.8 kB / 499.9 MB, free: 11.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005259/0.1126, allocations: 469.6 kB / 0.4886 GB, free: 11.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.9e-05/0.1127, allocations: 33.7 kB / 0.4887 GB, free: 11.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.1128, allocations: 172.3 kB / 0.4888 GB, free: 10.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.16e-05/0.1128, allocations: 39.69 kB / 0.4889 GB, free: 10.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.639e-05/0.1129, allocations: 41.7 kB / 0.4889 GB, free: 10.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1131, allocations: 350.8 kB / 0.4893 GB, free: 10.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.1132, allocations: 39.97 kB / 0.4893 GB, free: 10.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.1133, allocations: 130.5 kB / 0.4894 GB, free: 10.22 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.1136, allocations: 133.9 kB / 0.4895 GB, free: 10.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1136, allocations: 0 / 0.4895 GB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003472/0.1139, allocations: 201.2 kB / 0.4897 GB, free: 9.863 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.1139, allocations: 8 kB / 0.4897 GB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.1139, allocations: 0 / 0.4897 GB, free: 9.855 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.114, allocations: 4 kB / 0.4897 GB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.1141, allocations: 28.08 kB / 0.4898 GB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.1141, allocations: 4 kB / 0.4898 GB, free: 9.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.1142, allocations: 16.11 kB / 0.4898 GB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.1142, allocations: 12 kB / 0.4898 GB, free: 9.793 MB / 366.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.0001722/0.1144, allocations: 176.9 kB / 0.49 GB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.219e-05/0.1144, allocations: 39.7 kB / 0.49 GB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.199e-05/0.1145, allocations: 34.98 kB / 0.49 GB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.1145, allocations: 4 kB / 0.4901 GB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1145, allocations: 4 kB / 0.4901 GB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.1145, allocations: 3.984 kB / 0.4901 GB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002913/0.1148, allocations: 297.4 kB / 0.4903 GB, free: 9.184 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.1148, allocations: 3.938 kB / 0.4903 GB, free: 9.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.235e-05/0.1148, allocations: 7.938 kB / 0.4904 GB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.1148, allocations: 4 kB / 0.4904 GB, free: 9.168 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.1149, allocations: 4 kB / 0.4904 GB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.1149, allocations: 3.984 kB / 0.4904 GB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1149, allocations: 0 / 0.4904 GB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003786/0.1152, allocations: 228.7 kB / 0.4906 GB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.36e-05/0.1153, allocations: 104.9 kB / 0.4907 GB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.1154, allocations: 11.98 kB / 0.4907 GB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.414e-05/0.1155, allocations: 4 kB / 0.4907 GB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.858e-05/0.1155, allocations: 11.98 kB / 0.4907 GB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.1155, allocations: 11.98 kB / 0.4907 GB, free: 8.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003735/0.1159, allocations: 343.1 kB / 0.491 GB, free: 8.422 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1159, allocations: 0 / 0.491 GB, free: 8.422 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003172/0.1162, allocations: 67.88 kB / 0.4911 GB, free: 8.355 MB / 366.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.002048/0.1183, allocations: 1.089 MB / 0.4922 GB, free: 7.406 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003254/0.1186, allocations: 119.9 kB / 0.4923 GB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.1186, allocations: 0 / 0.4923 GB, free: 7.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.1187, allocations: 55.92 kB / 0.4923 GB, free: 7.234 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.1192, allocations: 91.39 kB / 0.4924 GB, free: 7.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003776/0.1229, allocations: 3.011 MB / 0.4954 GB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.1234, allocations: 0.7829 MB / 0.4961 GB, free: 3.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000148/0.1235, allocations: 42.27 kB / 0.4962 GB, free: 3.184 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.1237, allocations: 99.39 kB / 0.4963 GB, free: 3.086 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1237, allocations: 3.938 kB / 0.4963 GB, free: 3.082 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.1559, allocations: 7.621 MB / 0.5037 GB, free: 11.6 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.201/8.357, allocations: 6.094 kB / 0.5037 GB, free: 11.6 MB / 382.1 MB " [Timeout remaining time 652] (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: 11.087966545950621] Failed to read output from testmodel.py, exit status != 0: 8.483040341176093 8.692142601 8.395079757 Calling exit ...